From 2641a9c30a77e69f222b0a219e7f9f7b303db6ec Mon Sep 17 00:00:00 2001 From: Serhey Dolgushev Date: Mon, 2 Dec 2019 16:58:40 +0000 Subject: [PATCH 1/2] Dont use zero width sapce for EZP-29882 --- .../Resources/public/js/alloyeditor/src/plugins/ez-embed.js | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/bundle/Resources/public/js/alloyeditor/src/plugins/ez-embed.js b/src/bundle/Resources/public/js/alloyeditor/src/plugins/ez-embed.js index 67485f8a45..1254b1c8d8 100644 --- a/src/bundle/Resources/public/js/alloyeditor/src/plugins/ez-embed.js +++ b/src/bundle/Resources/public/js/alloyeditor/src/plugins/ez-embed.js @@ -1,7 +1,5 @@ import embedBaseDefinition from '../widgets/ez-embed-base'; -const ZERO_WIDTH_SPACE = '​'; - (function(global) { if (CKEDITOR.plugins.get('ezembed') && CKEDITOR.plugins.get('ezembedinline')) { return; @@ -64,7 +62,6 @@ const ZERO_WIDTH_SPACE = '​'; }, insertWrapper: function(wrapper) { - this.editor.insertHtml(ZERO_WIDTH_SPACE); this.editor.insertElement(wrapper); }, From 1cdf8b31978e374de65fa80bbaec76b7beb4e9ad Mon Sep 17 00:00:00 2001 From: Serhey Dolgushev Date: Fri, 13 Dec 2019 15:45:05 +0000 Subject: [PATCH 2/2] EZP-29882: Remove unused ZERO_WIDTH_SPACE --- .../public/js/alloyeditor/src/plugins/ez-custom-tag.js | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/bundle/Resources/public/js/alloyeditor/src/plugins/ez-custom-tag.js b/src/bundle/Resources/public/js/alloyeditor/src/plugins/ez-custom-tag.js index fd7586215d..71649589c1 100644 --- a/src/bundle/Resources/public/js/alloyeditor/src/plugins/ez-custom-tag.js +++ b/src/bundle/Resources/public/js/alloyeditor/src/plugins/ez-custom-tag.js @@ -1,7 +1,5 @@ import customTagBaseDefinition from '../widgets/ez-custom-tag-base'; -const ZERO_WIDTH_SPACE = '​'; - CKEDITOR.dtd.$editable.span = 1; (function(global) {