From: Alan Date: Mon, 10 Jan 2022 07:24:47 +0000 (+0800) Subject: Roo/form/HtmlEditor/ToolbarStandard.js X-Git-Url: http://git.roojs.org/?p=roojs1;a=commitdiff_plain;h=fe8764df0dd0c6278e411adce7082e96d76acae5 Roo/form/HtmlEditor/ToolbarStandard.js --- diff --git a/Roo/form/HtmlEditor/ToolbarStandard.js b/Roo/form/HtmlEditor/ToolbarStandard.js index 7087d94ee5..e7924fd4cf 100644 --- a/Roo/form/HtmlEditor/ToolbarStandard.js +++ b/Roo/form/HtmlEditor/ToolbarStandard.js @@ -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); }