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);