Roo/bootstrap/form/HtmlEditorToolbar/Standard.js
authorAlan <alan@roojs.com>
Thu, 16 Feb 2023 09:01:59 +0000 (17:01 +0800)
committerAlan <alan@roojs.com>
Thu, 16 Feb 2023 09:01:59 +0000 (17:01 +0800)
Roo/bootstrap/form/HtmlEditorToolbar/Standard.js

index bcecd6e..5736dba 100644 (file)
@@ -140,7 +140,9 @@ Roo.extend(Roo.bootstrap.form.HtmlEditorToolbar.Standard, Roo.bootstrap.nav.Simp
         btn('align-left',   'justifyleft',true);
         btn('align-center', 'justifycenter',true);
         btn('align-right' , 'justifyright',true);
-        btn('link', false, true, function(btn) {
+        btn('link', false, true, this.onLinkClick);
+        
+        function(btn) {
             var url = this.selectedNode && this.selectedNode.tagName.toUpperCase() == 'A' ?
                     this.selectedNode.getAttribute('href') : '';