// disable everything...
var ty= Roo.form.HtmlEditor.ToolbarContext.types;
this.toolbars = {};
- Roo.log('this.styles!!!!!!!!!!!!!!!!!!!!!!!!!!!!');
- Roo.log(this.styles);
+
for (var i in ty) {
this.toolbars[i] = this.buildToolbar(ty[i],i);
}
this.tb = this.toolbars.BODY;
- Roo.log('this.toolbars.BODY!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!');
- Roo.log(this.toolbars.BODY);
-
this.tb.el.show();
this.buildFooter();
this.footer.show();
},
buildToolbar: function(tlist, nm)
{
- Roo.log('build Toolbar!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!');
- Roo.log([tlist, nm])
var editor = this.editor;
var editorcore = this.editorcore;
// create a new element.
tag: 'div'
}, editor.wrap.dom.firstChild.nextSibling, true);
- Roo.log(wdiv);
+
var tb = new Roo.Toolbar(wdiv);
- Roo.log(tb);
// add the name..
tb.add(nm+ ": ");
var tbc = Roo.form.HtmlEditor.ToolbarContext;
var tbops = tbc.options;
- Roo.log('tbc!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!');
- Roo.log(tbc.options);
+
for (var i in tlist) {
var item = tlist[i];
}
}
-
-
-
-
});
tb.addFill();
-
tb.addButton( {
text: 'Remove Tag',