roojs-bootstrap.js
authorAlan <alan@roojs.com>
Thu, 16 Feb 2023 08:52:04 +0000 (16:52 +0800)
committerAlan <alan@roojs.com>
Thu, 16 Feb 2023 08:52:04 +0000 (16:52 +0800)
roojs-bootstrap-debug.js
Roo/bootstrap/form/HtmlEditorToolbar/Standard.js

Roo/bootstrap/form/HtmlEditorToolbar/Standard.js
roojs-bootstrap-debug.js

index c3d40fa..c4428e6 100644 (file)
@@ -277,7 +277,10 @@ Roo.extend(Roo.bootstrap.form.HtmlEditorToolbar.Standard, Roo.bootstrap.nav.Simp
             db = sel.closest('[data-block]');
         }
         
-       
+        Array.from(this.editorcore.doc.body.querySelectorAll('.roo-ed-selection')).forEach(function(e) {
+            e.classList.remove('roo-ed-selection');
+        });
+        
         var block = false;
         if (db && this.editorcore.enableBlocks) {
             block = Roo.htmleditor.Block.factory(db);
@@ -303,9 +306,7 @@ Roo.extend(Roo.bootstrap.form.HtmlEditorToolbar.Standard, Roo.bootstrap.nav.Simp
         Roo.bootstrap.menu.Manager.hideAll();
          
         
-        Array.from(this.editorcore.doc.body.querySelectorAll('.roo-ed-selection')).forEach(function(e) {
-            e.classList.remove('roo-ed-selection');
-        });
+        
         
         
         // handle delete button..
index 46f5777..e8a8b50 100644 (file)
@@ -33151,9 +33151,8 @@ Roo.extend(Roo.bootstrap.form.HtmlEditorToolbar.Standard, Roo.bootstrap.nav.Simp
             block = Roo.htmleditor.Block.factory(db);
             
             if (block) {
-                db.className = (
-                        db.classList.length > 0  ? db.className + ' ' : ''
-                    )  + ' roo-ed-selection';
+                db.className =  (db.classList.length > 0  ? db.className + ' ' : '') +
+                    ' roo-ed-selection';
                 sel = this.selectedNode = db;
             }
         }