Skip to content

Commit

Permalink
task: remove inline html and rely on wysiwyg (#14732)
Browse files Browse the repository at this point in the history
  • Loading branch information
kingjia90 committed Mar 27, 2023
1 parent 250ed06 commit 295f5e8
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -29,7 +29,7 @@ pimcore.settings.translation.editor = Class.create({
if (editorType === 'wysiwyg') {
this.editableDivId = "translationeditor_" + uniqid();

var html = '<div class="pimcore_editable_wysiwyg" id="' + this.editableDivId + '" contenteditable="true">' + value + '</div>';
var html = '<div class="pimcore_editable_wysiwyg" id="' + this.editableDivId + '" contenteditable="true"></div>';
var pConf = {
html: html,
border: true,
Expand Down Expand Up @@ -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) {
Expand Down

0 comments on commit 295f5e8

Please sign in to comment.