Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
function loadRTE(field, execution) {
let additional_options = {};
let instance = CKEDITOR.instances["execution_" + execution.id];
if (instance) {
CKEDITOR.remove(instance);
}
if (execution.upload_url) {
additional_options = {
extraPlugins: "uploadimage",
uploadUrl: execution.upload_url,
};
}
let config = {
disableNativeSpellChecker: false,
toolbar: [
["Bold", "Italic", "Styles"],
["Link", "Unlink", "Image"],
],
stylesSet: [
{ name: "Bold", element: "strong", overrides: "b" },