Roo/form/HtmlEditor/ToolbarStandard.js
[roojs1] / 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