From 295f5e8d108b68198e36399bea0f69598eb108a0 Mon Sep 17 00:00:00 2001 From: JiaJia Ji Date: Mon, 27 Mar 2023 14:02:33 +0200 Subject: [PATCH] task: remove inline html and rely on wysiwyg (#14732) --- .../Resources/public/js/pimcore/settings/translationEditor.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bundles/AdminBundle/Resources/public/js/pimcore/settings/translationEditor.js b/bundles/AdminBundle/Resources/public/js/pimcore/settings/translationEditor.js index 0729dee4ee7..e69bb0449fd 100644 --- a/bundles/AdminBundle/Resources/public/js/pimcore/settings/translationEditor.js +++ b/bundles/AdminBundle/Resources/public/js/pimcore/settings/translationEditor.js @@ -29,7 +29,7 @@ pimcore.settings.translation.editor = Class.create({ if (editorType === 'wysiwyg') { this.editableDivId = "translationeditor_" + uniqid(); - var html = '
' + value + '
'; + var html = '
'; var pConf = { html: html, border: true, @@ -186,6 +186,7 @@ pimcore.settings.translation.editor = Class.create({ try { this.ckeditor = CKEDITOR.inline(this.editableDivId, eConfig); + this.ckeditor.setData(this.field.getValue()); // disable URL field in image dialog this.ckeditor.on("dialogShow", function (e) {