From 874a36826cdc35f83a660db2fbe126ebbc61aa78 Mon Sep 17 00:00:00 2001
From: Dariusz Szut <dew326@gmail.com>
Date: Fri, 1 Mar 2019 10:43:28 +0100
Subject: [PATCH] fix plus button

---
 .../Resources/public/js/alloyeditor/src/toolbars/ez-add.js  | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/src/bundle/Resources/public/js/alloyeditor/src/toolbars/ez-add.js b/src/bundle/Resources/public/js/alloyeditor/src/toolbars/ez-add.js
index 6f58712441..7153685dcc 100644
--- a/src/bundle/Resources/public/js/alloyeditor/src/toolbars/ez-add.js
+++ b/src/bundle/Resources/public/js/alloyeditor/src/toolbars/ez-add.js
@@ -39,9 +39,11 @@ export default class EzToolbarAdd extends AlloyEditor.Toolbars.add {
      * @return {Object} The content which should be rendered.
      */
     render() {
-        const selectionData = this.props.selectionData;
+        const { selectionData, editor } = this.props;
+        const path = editor.get('nativeEditor').elementPath();
+        const isInlineCustomTag = path && path.contains((element) => element.$.dataset.ezelement === 'eztemplateinline');
 
-        if (selectionData && selectionData.text) {
+        if ((selectionData && selectionData.text) || isInlineCustomTag) {
             return null;
         }