From 3bf8692ce68eb4b5d6e11b122c3ecf88f377f7e6 Mon Sep 17 00:00:00 2001 From: Alan Date: Mon, 10 Jan 2022 15:25:09 +0800 Subject: [PATCH 1/1] roojs-ui.js roojs-ui-debug.js roojs-all.js roojs-debug.js --- roojs-all.js | 6 +++--- roojs-debug.js | 5 ++++- roojs-ui-debug.js | 5 ++++- roojs-ui.js | 6 +++--- 4 files changed, 14 insertions(+), 8 deletions(-) diff --git a/roojs-all.js b/roojs-all.js index ef70aadb6b..e78b7fdd59 100644 --- a/roojs-all.js +++ b/roojs-all.js @@ -2153,9 +2153,9 @@ F.menu.items.push({actiontype:'word',html:'Remove MS Word Formating',handler:fun );F.menu.items.push({actiontype:'tidy',html:'Tidy HTML Source',handler:function(a,b){new Roo.htmleditor.Tidy(B.doc.body);B.syncValue();},tabIndex:-1});tb.add(F);}if(!this.disable.specialElements){var G={text:"Other;",cls:'x-edit-none',menu:{items:[]}};for(var i=0; i':'>'),ff,''); diff --git a/roojs-debug.js b/roojs-debug.js index 647a8405e1..a33f95b438 100644 --- a/roojs-debug.js +++ b/roojs-debug.js @@ -52206,7 +52206,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); } diff --git a/roojs-ui-debug.js b/roojs-ui-debug.js index 4c4500c770..3a0ad3c907 100644 --- a/roojs-ui-debug.js +++ b/roojs-ui-debug.js @@ -27737,7 +27737,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); } diff --git a/roojs-ui.js b/roojs-ui.js index dfeada06b0..ebb31f93e9 100644 --- a/roojs-ui.js +++ b/roojs-ui.js @@ -1208,9 +1208,9 @@ F.menu.items.push({actiontype:'word',html:'Remove MS Word Formating',handler:fun );F.menu.items.push({actiontype:'tidy',html:'Tidy HTML Source',handler:function(a,b){new Roo.htmleditor.Tidy(B.doc.body);B.syncValue();},tabIndex:-1});tb.add(F);}if(!this.disable.specialElements){var G={text:"Other;",cls:'x-edit-none',menu:{items:[]}};for(var i=0; i':'>'),ff,''); -- 2.39.2