X-Git-Url: http://git.roojs.org/?a=blobdiff_plain;f=roojs-ui.js;h=6a5f14027a8e777b49a3c622841214d9f19709d3;hb=e28295d9bf2622b5292557e0935b71b03f537647;hp=00c3638556bb25e0a0ca56933945522c5e21df93;hpb=d4ca53e333b848352644ab96ae0508a19111366c;p=roojs1 diff --git a/roojs-ui.js b/roojs-ui.js index 00c3638556..6a5f14027a 100644 --- a/roojs-ui.js +++ b/roojs-ui.js @@ -1208,11 +1208,12 @@ F.menu.items.push({actiontype:'word',html:'Remove MS Word Formating',handler:fun );F.menu.items.push({actiontype:'tidy',html:'Tidy HTML Source',handler:function(a,b){new Roo.htmleditor.Tidy(B.doc.body);B.syncValue();},tabIndex:-1});tb.add(F);}if(!this.disable.specialElements){var G={text:"Other;",cls:'x-edit-none',menu:{items:[]}};for(var i=0; i':'>'),ff,''); }return A.join('');},toggleSourceEdit:function(A){Roo.log("toolbar toogle");if(A===undefined){A=!this.sourceEditMode;}this.sourceEditMode=A===true;var B=this.tb.items.get(this.editorcore.frameId+'-sourceedit');if(B.pressed!==this.sourceEditMode){B.toggle(this.sourceEditMode); return;}if(A){Roo.log("disabling buttons");this.tb.items.each(function(C){if(C.cmd!='sourceedit'&&(typeof(C.cls)!='undefined'&&C.cls.indexOf('x-init-enable')===-1)){C.disable();}});}else{Roo.log("enabling buttons");if(this.editorcore.initialized){this.tb.items.each(function(C){C.enable();