Roo/bootstrap/HtmlEditor.js
authorAlan Knowles <alan@roojs.com>
Thu, 15 May 2014 10:03:55 +0000 (18:03 +0800)
committerAlan Knowles <alan@roojs.com>
Thu, 15 May 2014 10:03:55 +0000 (18:03 +0800)
Roo/bootstrap/HtmlEditor.js

index 1b93e5a..99ee032 100644 (file)
@@ -154,10 +154,10 @@ Roo.extend(Roo.bootstrap.HtmlEditor, Roo.bootstrap.TextArea,  {
      * add custom toolbar buttons.
      * @param {HtmlEditor} editor
      */
-    createToolbar : function(editor){
+    createToolbar : function(){
         
-        editor.toolbars = [ new Roo.bootstrap.HtmlEditor.ToolbarStandard({editor: this} ) ];
-        editor.toolbars[0].render(this.toolbarContainer());
+        this.toolbars = [ new Roo.bootstrap.HtmlEditor.ToolbarStandard({editor: this} ) ];
+        this.toolbars[0].render(this.toolbarContainer());
          
         Roo.log("create toolbars");
         return;