* @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' ?
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){
*/
};
-
- 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({
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);
}
// disable everything...
this.tb.items.each(function(item){
- Roo.log('items!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!');
- Roo.log(item);
if(item.id != editorcore.frameId+ '-sourceedit'){
item.disable();
}