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

index 28bb0b5..7087d94 100644 (file)
@@ -526,10 +526,13 @@ Roo.apply(Roo.form.HtmlEditor.ToolbarStandard.prototype,  {
     // private used internally
     createLink : function(){
         Roo.log("create link?");
-        var url = prompt(this.createLinkText, this.defaultLinkValue);
-        if(url && url != 'http:/'+'/'){
-            this.editorcore.relayCmd('createlink', url);
-        }
+        var ec = this.editorcore;
+        Roo.MessageBox.prompt("Add Link URL",this.createLinkText, function(url) {
+            if(url && url != 'http:/'+'/'){
+                ec.relayCmd('createlink', url);
+            }
+        });
+        
     },