From 23ba77fb1e578ac1ae156b0606c24f0375b01c23 Mon Sep 17 00:00:00 2001 From: Artur Arseniev Date: Mon, 4 Oct 2021 16:16:29 +0200 Subject: [PATCH] Exit from OpenTraitManager if a custom container was used --- src/commands/view/OpenTraitManager.js | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/src/commands/view/OpenTraitManager.js b/src/commands/view/OpenTraitManager.js index 2f6173c9d..85d37af89 100644 --- a/src/commands/view/OpenTraitManager.js +++ b/src/commands/view/OpenTraitManager.js @@ -7,13 +7,15 @@ export default { this.sender = sender; const em = editor.getModel(); - var config = editor.Config; - var pfx = config.stylePrefix; - var tm = editor.TraitManager; - var panelC; + const config = editor.Config; + const pfx = config.stylePrefix; + const tm = editor.TraitManager; + const confTm = tm.getConfig(); + let panelC; + + if (confTm.appendTo) return; if (!this.$cn) { - var confTm = tm.getConfig(); this.$cn = $('
'); this.$cn2 = $('
'); this.$cn.append(this.$cn2);