editor.js
In between:
// Insert toolbar buttons.
And
// Create text area
I want to REMOVE all of the script and replace it with this code, because a second toolbar has been added, the url's have been changed, and so have the IE width and height parameters to accommodate the second toolbar:
Possible or not ?
// Insert toolbar buttons.
this.insertStandardButton(formatting, "b", "mycode_box/images/codebuttons/bold.gif", "b", "", this.options.lang.title_bold);
this.insertStandardButton(formatting, "i", "mycode_box/images/codebuttons/italic.gif", "i", "", this.options.lang.title_italic);
this.insertStandardButton(formatting, "u", "mycode_box/images/codebuttons/underline.gif", "u", "", this.options.lang.title_underline);
this.insertSeparator(formatting);
this.insertStandardButton(formatting, "align_left", "mycode_box/images/codebuttons/align_left.gif", "align", "left", this.options.lang.title_left);
this.insertStandardButton(formatting, "align_center", "mycode_box/images/codebuttons/align_center.gif", "align", "center", this.options.lang.title_center);
this.insertStandardButton(formatting, "align_right", "mycode_box/images/codebuttons/align_right.gif", "align", "right", this.options.lang.title_right);
this.insertStandardButton(formatting, "align_justify", "mycode_box/images/codebuttons/align_justify.gif", "align", "justify", this.options.lang.title_justify);
// Create insertable elements section of second toolbar.
elements = document.createElement("div");
elements.style.position = "absolute";
if(this.options.rtl == 1)
{
elements.style.left = 0;
}
else
{
elements.style.right = 0;
}
toolbar2.appendChild(elements);
this.insertStandardButton(elements, "list_num", "mycode_box/images/codebuttons/list_num.gif", "list", "1", this.options.lang.title_numlist);
this.insertStandardButton(elements, "list_bullet", "mycode_box/images/codebuttons/list_bullet.gif", "list", "", this.options.lang.title_bulletlist);
this.insertSeparator(elements);
this.insertStandardButton(elements, "img", "mycode_box/images/codebuttons/image.gif", "image", "", this.options.lang.title_image);
this.insertStandardButton(elements, "url", "mycode_box/images/codebuttons/link.gif", "url", "", this.options.lang.title_hyperlink);
this.insertStandardButton(elements, "email", "mycode_box/images/codebuttons/email.gif", "email", "", this.options.lang.title_email);
this.insertSeparator(elements);
this.insertStandardButton(elements, "quote", "mycode_box/images/codebuttons/quote.gif", "quote", "", this.options.lang.title_quote);
this.insertStandardButton(elements, "code", "mycode_box/images/codebuttons/code.gif", "code", "", this.options.lang.title_code);
this.insertStandardButton(elements, "php", "mycode_box/images/codebuttons/php.gif", "php", "", this.options.lang.title_php);
// Append the second toolbar to the editor
editor.appendChild(toolbar2);
// Create a new toolbar under the existing toolbars.
toolbar3 = document.createElement("div");
toolbar3.style.height = "28px";
toolbar3.style.position = "relative";
// Create formatting section of the new toolbar.
toolbar3area = document.createElement("div");
toolbar3area.style.position = "absolute";
toolbar3.appendChild(toolbar3area);
// Insert toolbar3area buttons.
this.insertStandardButton(toolbar3area, "flash", "mycode_box/images/codebuttons/flash.gif", "flash", "", this.options.lang.title_flash);
this.insertStandardButton(toolbar3area, "video", "mycode_box/images/codebuttons/video.gif", "video", "", this.options.lang.title_video);
this.insertStandardButton(toolbar3area, "music", "mycode_box/images/codebuttons/stream.gif", "music", "", this.options.lang.title_music);
this.insertStandardButton(toolbar3area, "youtube", "mycode_box/images/codebuttons/youtube.gif", "youtube", "", this.options.lang.title_youtube);
this.insertSeparator(toolbar3area);
this.insertStandardButton(toolbar3area, "marql", "mycode_box/images/codebuttons/marql.gif", "marql", "", this.options.lang.title_marql);
this.insertStandardButton(toolbar3area, "marqu", "mycode_box/images/codebuttons/marqu.gif", "marqu", "", this.options.lang.title_marqu);
this.insertStandardButton(toolbar3area, "marqd", "mycode_box/images/codebuttons/marqd.gif", "marqd", "", this.options.lang.title_marqd);
this.insertStandardButton(toolbar3area, "marqr", "mycode_box/images/codebuttons/marqr.gif", "marqr", "", this.options.lang.title_marqr);
this.insertSeparator(toolbar3area);
this.insertStandardButton(toolbar3area, "strike", "mycode_box/images/codebuttons/strike.gif", "strike", "", this.options.lang.title_strike);
this.insertStandardButton(toolbar3area, "sub", "mycode_box/images/codebuttons/sub.gif", "sub", "", this.options.lang.title_sub);
this.insertStandardButton(toolbar3area, "sup", "mycode_box/images/codebuttons/sup.gif", "sup", "", this.options.lang.title_sup);
this.insertSeparator(toolbar3area);
this.insertStandardButton(toolbar3area, "spoil", "mycode_box/images/codebuttons/spoil.gif", "spoil", "", this.options.lang.title_spoil);
this.insertStandardButton(toolbar3area, "img", "mycode_box/images/codebuttons/highslide.gif", "img", "", this.options.lang.title_highslide);
// Insert the new toolbar into the editor
editor.appendChild(toolbar3);
// Create our new text area
areaContainer = document.createElement("div");
areaContainer.style.clear = "both";
// Set the height of the area
subtract = subtract2 = 0;
if(MyBB.browser != "ie" || (MyBB.browser == "ie" && MyBB.useragent.indexOf('msie 7.') != -1))
{
subtract = subtract2 = 35;
}
areaContainer.style.height = parseInt(editor.style.height)-parseInt(toolBar.style.height)-parseInt(toolbar2.style.height)-subtract+"px";
// Set the width of the area
subtract = subtract3 = 0;
if(MyBB.browser != "ie" || (MyBB.browser == "ie" && MyBB.useragent.indexOf('msie 7.') != -1))
{
subtract = subtract3 = 8;
}
areaContainer.style.width = parseInt(editor.style.width)-subtract3+"px";
// Create text area