From: Alan Date: Mon, 10 Jan 2022 07:25:09 +0000 (+0800) Subject: roojs-ui.js X-Git-Url: http://git.roojs.org/?p=roojs1;a=commitdiff_plain;h=3bf8692ce68eb4b5d6e11b122c3ecf88f377f7e6 roojs-ui.js roojs-ui-debug.js roojs-all.js roojs-debug.js --- 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,'');