Lines 827 - 916... scrollbars off to on?
Code:
// the execCommand function (intercepts some commands and replaces them with
// our own implementation)
HTMLArea.prototype.execCommand = function(cmdID, UI, param) {
var editor = this; // for nested functions
this.focusEditor();
cmdID = cmdID.toLowerCase();
switch (cmdID) {
case "htmlmode" : this.setMode(); break;
case "hilitecolor":
(HTMLArea.is_ie) && (cmdID = "backcolor");
case "forecolor":
this._popupDialog("select_color_" + _editor_lang + ".html", function(color) {
if (color) { // selection not canceled
editor._doc.execCommand(cmdID, false, "#" + color);
}
}, HTMLArea._colorToRgb(this._doc.queryCommandValue(cmdID)));
break;
case "createlink": this._createLink(); break;
case "popupeditor":
// this object will be passed to the newly opened window
HTMLArea._object = this;
if (HTMLArea.is_ie) {
//if (confirm(HTMLArea.I18N.msg["IE-sucks-full-screen"]))
{
window.open(this.popupURL("fullscreen.html"), "ha_fullscreen",
"toolbar=no,location=no,directories=no,status=no,menubar=no," +
"scrollbars=no,resizable=yes,width=640,height=480");
}
} else {
window.open(this.popupURL("fullscreen.html"), "ha_fullscreen",
"toolbar=no,menubar=no,personalbar=no,width=640,height=480," +
"scrollbars=no,resizable=yes");
}
break;
case "undo":
case "redo":
if (this._customUndo)
this[cmdID]();
else
this._doc.execCommand(cmdID, UI, param);
break;
case "inserttable": this._insertTable(); break;
case "toggleborders": this._toggleBorders(); break; // added for toggleborders
case "insertimage": this._insertImage(); break;
case "insertcharacter": this._insertCharacter(); break;
case "insertfile": this._insertFile(); break;
case "about" : this._popupDialog("about.html", null, this); break;
case "showhelp" : window.open(this.popupURL("help_" + _editor_lang + ".html"), "ha_help",
"toolbar=no,menubar=no,personalbar=no,width=500,height=450," +
"scrollbars=yes,resizable=no"); break;
case "killword": this._wordClean(); break;
case "cut":
case "copy":
case "paste":
try {
if (this.config.killWordOnPaste)
this._wordClean();
this._doc.execCommand(cmdID, UI, param);
} catch (e) {
if (HTMLArea.is_gecko) {
if (confirm(HTMLArea.I18N.msg["Moz-Clipboard"])) {
window.open(this.popupURL("mozilla_prefs_" + _editor_lang + ".html"), "ha_moz_prefs",
"toolbar=no,menubar=no,personalbar=no,width=700,height=250," +
"scrollbars=no,resizable=no");
} else {
//self.focus();
}
}
}
break;
case "lefttoright":
case "righttoleft":
var dir = (cmdID == "righttoleft") ? "rtl" : "ltr";
var el = this.getParentElement();
while (el && !HTMLArea.isBlockElement(el))
el = el.parentNode;
if (el) {
if (el.style.direction == dir)
el.style.direction = "";
else
el.style.direction = dir;
}
break;
default: this._doc.execCommand(cmdID, UI, param);
}
this.updateToolbar();
return false;
};
RIGHT? Am I even close?