projects
/
roojs1
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ffcf562
)
Roo/form/HtmlEditor/ToolbarStandard.js
author
Alan
<alan@roojs.com>
Mon, 3 Jan 2022 07:48:36 +0000
(15:48 +0800)
committer
Alan
<alan@roojs.com>
Mon, 3 Jan 2022 07:48:36 +0000
(15:48 +0800)
Roo/form/HtmlEditor/ToolbarStandard.js
patch
|
blob
|
history
diff --git
a/Roo/form/HtmlEditor/ToolbarStandard.js
b/Roo/form/HtmlEditor/ToolbarStandard.js
index
28bb0b5
..
7087d94
100644
(file)
--- a/
Roo/form/HtmlEditor/ToolbarStandard.js
+++ b/
Roo/form/HtmlEditor/ToolbarStandard.js
@@
-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);
+ }
+ });
+
},