From 30ea995ad8af3351e5111cf2d8a139ec7c618350 Mon Sep 17 00:00:00 2001 From: Serhey Dolgushev Date: Wed, 22 Jan 2020 11:16:07 +0000 Subject: [PATCH] EZP-31321: Dropped injecting zero-width space into ezembed(inline) elements (#1151) * Dont use zero width sapce for EZP-29882 * EZP-29882: Remove unused ZERO_WIDTH_SPACE --- .../public/js/alloyeditor/src/plugins/ez-custom-tag.js | 2 -- .../Resources/public/js/alloyeditor/src/plugins/ez-embed.js | 3 --- 2 files changed, 5 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) { 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); },