projects
/
roojs1
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2ae98a5
)
Roo/form/HtmlEditor/ToolbarStandard.js
author
Alan Knowles
<alan@roojs.com>
Tue, 29 Apr 2014 11:42:54 +0000
(19:42 +0800)
committer
Alan Knowles
<alan@roojs.com>
Tue, 29 Apr 2014 11:42:54 +0000
(19:42 +0800)
Roo/form/HtmlEditor/ToolbarStandard.js
patch
|
blob
|
history
diff --git
a/Roo/form/HtmlEditor/ToolbarStandard.js
b/Roo/form/HtmlEditor/ToolbarStandard.js
index
adf6f55
..
970bb04
100644
(file)
--- a/
Roo/form/HtmlEditor/ToolbarStandard.js
+++ b/
Roo/form/HtmlEditor/ToolbarStandard.js
@@
-442,7
+442,14
@@
Roo.apply(Roo.form.HtmlEditor.ToolbarStandard.prototype, {
relayBtnCmd : function(btn) {
this.editorcore.relayCmd(btn.cmd);
},
-
+ // private used internally
+ createLink : function(){
+ var url = prompt(this.createLinkText, this.defaultLinkValue);
+ if(url && url != 'http:/'+'/'){
+ this.editorcore.relayCmd('createlink', url);
+ }
+ },
+
/**
* Protected method that will not generally be called directly. It triggers