Roo/bootstrap/form/HtmlEditorToolbar/Context.js
authorAlan <alan@roojs.com>
Thu, 16 Feb 2023 07:43:24 +0000 (15:43 +0800)
committerAlan <alan@roojs.com>
Thu, 16 Feb 2023 07:43:24 +0000 (15:43 +0800)
Roo/bootstrap/form/HtmlEditorToolbar/Context.js

index 3b21393..e559805 100644 (file)
@@ -298,7 +298,7 @@ Roo.extend(Roo.bootstrap.form.HtmlEditorToolbar.Context, Roo.bootstrap.nav.Simpl
         
         
         if (sn.hasAttribute('data-block')) {
-            var block = Roo.htmleditor.Block.factory(tb.selectedNode)
+            var block = Roo.htmleditor.Block.factory(tb.selectedNode);
             if (block) {
                 block.removeNode();
                 selection.removeAllRanges();
@@ -415,7 +415,7 @@ Roo.extend(Roo.bootstrap.form.HtmlEditorToolbar.Context, Roo.bootstrap.nav.Simpl
                 }
                 this.selectedNode = db;
                 left_label = block.friendly_name;
-                ans = this.editorcore.getAllAncestors();
+                 
             }