From fe8764df0dd0c6278e411adce7082e96d76acae5 Mon Sep 17 00:00:00 2001 From: Alan Date: Mon, 10 Jan 2022 15:24:47 +0800 Subject: [PATCH] Roo/form/HtmlEditor/ToolbarStandard.js --- Roo/form/HtmlEditor/ToolbarStandard.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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); } -- 2.39.2