From 08059f51012a0f4cb30ce961419cb7a580be4839 Mon Sep 17 00:00:00 2001 From: Serhey Dolgushev Date: Mon, 8 Jul 2019 13:57:35 +0100 Subject: [PATCH] Allow embeds in inside tables --- .../Resources/public/js/alloyeditor/src/plugins/ez-embed.js | 4 +--- 1 file changed, 1 insertion(+), 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..1ece03607e 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 @@ -21,9 +21,7 @@ const ZERO_WIDTH_SPACE = '​'; init: function(editor) { editor.ezembed = { canBeAdded: () => { - const path = editor.elementPath(); - - return !path || path.contains('table', true) === null; + return true; }, };