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

index 66f1d39..59a6624 100644 (file)
@@ -289,7 +289,7 @@ Roo.extend(Roo.bootstrap.form.HtmlEditorToolbar.Standard, Roo.bootstrap.nav.Simp
         
         // highlight the 'a'..
         var tn = sel && sel.tagName.toUpperCase() || '';
-        if (sel && tn != 'A') {
+        if (!block && sel && tn != 'A') {
             var asel = sel.closest('A');
             if (asel) {
                 sel = asel;