Roo/form/HtmlEditor/ToolbarStandard.js
authorAlan Knowles <alan@roojs.com>
Tue, 29 Apr 2014 11:42:54 +0000 (19:42 +0800)
committerAlan Knowles <alan@roojs.com>
Tue, 29 Apr 2014 11:42:54 +0000 (19:42 +0800)
Roo/form/HtmlEditor/ToolbarStandard.js

index adf6f55..970bb04 100644 (file)
@@ -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