Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
toolbar: [
["Bold", "Italic", "Styles"],
["Link", "Unlink", "Image"],
],
stylesSet: [
{ name: "Bold", element: "strong", overrides: "b" },
{ name: "Italic", element: "em", overrides: "i" },
{ name: "Code", element: "code" },
{ name: "Subscript", element: "sub" },
{ name: "Superscript", element: "sup" },
],
uiColor: "ffffff",
language: document.body.dataset.userLocale,
...additional_options,
};
self.editor = CKEDITOR.inline(field, config);
self.editor.on("change", function () {
execution.results = self.editor.getData();
});
field.setAttribute("contenteditable", true);
setupImageUpload(field, execution);
}