Roo/form/HtmlEditor/ToolbarStandard.js
authorEdward <edward@roojs.com>
Fri, 19 Jun 2015 03:05:04 +0000 (11:05 +0800)
committerEdward <edward@roojs.com>
Fri, 19 Jun 2015 03:05:04 +0000 (11:05 +0800)
Roo/form/HtmlEditor.js

Roo/form/HtmlEditor.js
Roo/form/HtmlEditor/ToolbarStandard.js

index 2ba684f..c8cd1e8 100644 (file)
@@ -200,11 +200,11 @@ Roo.extend(Roo.form.HtmlEditor, Roo.form.Field, {
      * @param {HtmlEditor} editor
      */
     createToolbar : function(editor){
-        Roo.log("create toolbars!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!1");
+        Roo.log("create toolbars");
         if (!editor.toolbars || !editor.toolbars.length) {
             editor.toolbars = [ new Roo.form.HtmlEditor.ToolbarStandard() ]; // can be empty?
         }
-        Roo.log(editor.toolbars);
+        
         for (var i =0 ; i < editor.toolbars.length;i++) {
             editor.toolbars[i] = Roo.factory(
                     typeof(editor.toolbars[i]) == 'string' ?
index 3b3cdc5..9b3512d 100644 (file)
@@ -176,8 +176,6 @@ Roo.apply(Roo.form.HtmlEditor.ToolbarStandard.prototype,  {
         
         
         var tb = new Roo.Toolbar(editor.wrap.dom.firstChild);
-        Roo.log('ToobarStandard tb!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!');
-        Roo.log(tb);
         this.tb = tb;
          // stop form submits
         tb.el.on('click', function(e){
@@ -206,10 +204,6 @@ Roo.apply(Roo.form.HtmlEditor.ToolbarStandard.prototype,  {
             */
             
         };
-        
-        Roo.log('disable formats????????????????????????')
-        Roo.log(this.disable);
-        Roo.log(this.disable.formats);
         if(!this.disable.formats){
             this.formatCombo = new Roo.form.ComboBox({
                 store: new Roo.data.SimpleStore({
@@ -465,8 +459,7 @@ Roo.apply(Roo.form.HtmlEditor.ToolbarStandard.prototype,  {
         if (this.btns) {
             for(var i =0; i< this.btns.length;i++) {
                 var b = Roo.factory(this.btns[i],Roo.form);
-                //b.cls =  'x-edit-none';
-                
+                b.cls =  'x-edit-none';
                 b.scope = editorcore;
                 tb.add(b);
             }
@@ -478,8 +471,6 @@ Roo.apply(Roo.form.HtmlEditor.ToolbarStandard.prototype,  {
         // disable everything...
         
         this.tb.items.each(function(item){
-            Roo.log('items!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!');
-            Roo.log(item);
            if(item.id != editorcore.frameId+ '-sourceedit'){
                 item.disable();
             }