X-Git-Url: http://git.roojs.org/?a=blobdiff_plain;f=docs%2Fsrc%2FRoo_form_HtmlEditor_ToolbarStandard.js.html;h=9820f063932a5903560bc9921e87318530024021;hb=e28295d9bf2622b5292557e0935b71b03f537647;hp=e7bc48583ec8def3f45d615722fbd4c1c4d615df;hpb=1e3fd3b234a143eaed7c0ff0dc07cef93adcd638;p=roojs1 diff --git a/docs/src/Roo_form_HtmlEditor_ToolbarStandard.js.html b/docs/src/Roo_form_HtmlEditor_ToolbarStandard.js.html index e7bc48583e..9820f06393 100644 --- a/docs/src/Roo_form_HtmlEditor_ToolbarStandard.js.html +++ b/docs/src/Roo_form_HtmlEditor_ToolbarStandard.js.html @@ -1,5 +1,4 @@ -
// <script type="text/javascript">
-/*
+Roo/form/HtmlEditor/ToolbarStandard.js /*
* Based on
* Ext JS Library 1.1.1
* Copyright(c) 2006-2007, Ext JS, LLC.
@@ -8,9 +7,9 @@
*/
/**
- * @class Roo.form.HtmlEditorToolbar1
+ * @class Roo.form.HtmlEditor.ToolbarStandard
* Basic Toolbar
- *
+
* Usage:
*
new Roo.form.HtmlEditor({
@@ -24,7 +23,7 @@
*
* @cfg {Object} disable List of elements to disable..
- * @cfg {Array} btns List of additional buttons.
+ * @cfg {Roo.Toolbar.Item|Roo.Toolbar.Button|Roo.Toolbar.SplitButton|Roo.form.Field} btns[] List of additional buttons.
*
*
* NEEDS Extra CSS?
@@ -49,7 +48,7 @@
// dont call parent... till later.
}
-Roo.apply(Roo.form.HtmlEditor.ToolbarStandard.prototype, {
+Roo.form.HtmlEditor.ToolbarStandard.prototype = {
tb: false,
@@ -527,16 +526,18 @@
createLink : function(){
//Roo.log("create link?");
var ec = this.editorcore;
- Roo.MessageBox.prompt("Add Link URL",this.createLinkText, function(btn, url) {
- if (btn != 'ok') {
- return;
- }
- if(url && url != 'http:/'+'/'){
- ec.relayCmd('createlink', url);
- }
- });
+ (function() {
+ Roo.MessageBox.prompt("Add Link URL",this.createLinkText, function(btn, url) {
+ if (btn != 'ok') {
+ return;
+ }
+ if(url && url != 'http:/'+'/'){
+ ec.relayCmd('createlink', url);
+ }
+ });
+ }).defer(100, this); // we have to defer this , otherwise the mouse click gives focus to the main window.
- },
+ },
/**
@@ -779,7 +780,7 @@
item.enable();
});
}
-});
+};