Roo/form/HtmlEditor/ToolbarStandard.js
authorAlan <alan@roojs.com>
Mon, 10 Jan 2022 07:24:47 +0000 (15:24 +0800)
committerAlan <alan@roojs.com>
Mon, 10 Jan 2022 07:24:47 +0000 (15:24 +0800)
Roo/form/HtmlEditor/ToolbarStandard.js

index 7087d94..e7924fd 100644 (file)
@@ -527,7 +527,10 @@ Roo.apply(Roo.form.HtmlEditor.ToolbarStandard.prototype,  {
     createLink : function(){
         Roo.log("create link?");
         var ec = this.editorcore;
-        Roo.MessageBox.prompt("Add Link URL",this.createLinkText, function(url) {
+        Roo.MessageBox.prompt("Add Link URL",this.createLinkText, function(btn, url) {
+            if (btn != 'ok') {
+                return;
+            }
             if(url && url != 'http:/'+'/'){
                 ec.relayCmd('createlink', url);
             }