projects
/
roojs1
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
d3c70b0
)
Roo/form/HtmlEditor/ToolbarContext.js
author
Edward
<edward@roojs.com>
Fri, 19 Jun 2015 07:13:08 +0000
(15:13 +0800)
committer
Edward
<edward@roojs.com>
Fri, 19 Jun 2015 07:13:08 +0000
(15:13 +0800)
Roo/form/HtmlEditor/ToolbarContext.js
patch
|
blob
|
history
diff --git
a/Roo/form/HtmlEditor/ToolbarContext.js
b/Roo/form/HtmlEditor/ToolbarContext.js
index
f19188f
..
56d02e8
100644
(file)
--- a/
Roo/form/HtmlEditor/ToolbarContext.js
+++ b/
Roo/form/HtmlEditor/ToolbarContext.js
@@
-309,16
+309,12
@@
Roo.apply(Roo.form.HtmlEditor.ToolbarContext.prototype, {
// disable everything...
var ty= Roo.form.HtmlEditor.ToolbarContext.types;
this.toolbars = {};
// 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;
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();
this.tb.el.show();
this.buildFooter();
this.footer.show();
@@
-514,8
+510,6
@@
Roo.apply(Roo.form.HtmlEditor.ToolbarContext.prototype, {
},
buildToolbar: function(tlist, nm)
{
},
buildToolbar: function(tlist, nm)
{
- Roo.log('build Toolbar!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!');
- Roo.log([tlist, nm])
var editor = this.editor;
var editorcore = this.editorcore;
// create a new element.
var editor = this.editor;
var editorcore = this.editorcore;
// create a new element.
@@
-523,9
+517,8
@@
Roo.apply(Roo.form.HtmlEditor.ToolbarContext.prototype, {
tag: 'div'
}, editor.wrap.dom.firstChild.nextSibling, true);
tag: 'div'
}, editor.wrap.dom.firstChild.nextSibling, true);
- Roo.log(wdiv);
+
var tb = new Roo.Toolbar(wdiv);
var tb = new Roo.Toolbar(wdiv);
- Roo.log(tb);
// add the name..
tb.add(nm+ ": ");
// add the name..
tb.add(nm+ ": ");
@@
-568,8
+561,7
@@
Roo.apply(Roo.form.HtmlEditor.ToolbarContext.prototype, {
var tbc = Roo.form.HtmlEditor.ToolbarContext;
var tbops = tbc.options;
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];
for (var i in tlist) {
var item = tlist[i];
@@
-655,14
+647,9
@@
Roo.apply(Roo.form.HtmlEditor.ToolbarContext.prototype, {
}
}
}
}
-
-
-
-
});
tb.addFill();
});
tb.addFill();
-
tb.addButton( {
text: 'Remove Tag',
tb.addButton( {
text: 'Remove Tag',