From bcdfed7384b96a44bff9cbbbd8c1fb064d8841fc Mon Sep 17 00:00:00 2001 From: julmis Date: Thu, 26 Aug 2004 18:44:49 +0000 Subject: [PATCH] Merged --- lib/editor/htmlarea.php | 26 +++++++++++++++++++------- 1 file changed, 19 insertions(+), 7 deletions(-) diff --git a/lib/editor/htmlarea.php b/lib/editor/htmlarea.php index 6199ca020b..104b8c69e5 100644 --- a/lib/editor/htmlarea.php +++ b/lib/editor/htmlarea.php @@ -145,7 +145,10 @@ HTMLArea.Config = function () { "insertorderedlist", "insertunorderedlist", "outdent", "indent", "separator", "forecolor", "hilitecolor", "separator", "inserthorizontalrule", "createanchor", "createlink", "unlink", "insertimage", "inserttable", - "insertsmile", "insertchar", "separator", "htmlmode", "separator", "popupeditor" ] + "insertsmile", "insertchar", "separator", "htmlmode", "separator", "popupeditor"aspellpath) && !empty($CFG->editorspelling)) { + echo ",\"spellcheck\""; + }?> ] ]; this.fontname = { @@ -223,6 +226,9 @@ HTMLArea.Config = function () { lefttoright: [ "Direction left to right", "ed_left_to_right.gif", false, function(e) {e.execCommand("lefttoright");} ], righttoleft: [ "Direction right to left", "ed_right_to_left.gif", false, function(e) {e.execCommand("righttoleft");} ], insertsmile: ["Insert Smiley", "em.icon.smile.gif", false, function(e) {e.execCommand("insertsmile");} ], + aspellpath) && !empty($CFG->editorspelling)) { + echo "spellcheck: [\"Spell-check\", \"spell-check.gif\", false, spellClickHandler ],\n"; + }?> insertchar: [ "Insert Char", "icon_ins_char.gif", false, function(e) {e.execCommand("insertchar");} ] }; @@ -1336,7 +1342,7 @@ HTMLArea.prototype._createLink = function(link) { outparam = { f_anchors:anchors }; } - this._popupDialog("link_std.php?id=", function(param) { + this._popupDialog("link_std.php?id=", function(param) { if (!param) return false; var a = link; @@ -1381,10 +1387,16 @@ HTMLArea.prototype._insertImage = function(image) { f_height : image.height }; this._popupDialog("", function(param) { if (!param) { // user must have pressed Cancel return false; @@ -1609,12 +1621,12 @@ HTMLArea.prototype.execCommand = function(cmdID, UI, param) { HTMLArea._object = this; if (HTMLArea.is_ie) { { - window.open(this.popupURL("fullscreen.php?id="), "ha_fullscreen", + window.open(this.popupURL("fullscreen.php?id="), "ha_fullscreen", "toolbar=no,location=no,directories=no,status=no,menubar=no," + "scrollbars=no,resizable=yes,width=800,height=600"); } } else { - window.open(this.popupURL("fullscreen.php?id="), "ha_fullscreen", + window.open(this.popupURL("fullscreen.php?id="), "ha_fullscreen", "toolbar=no,menubar=no,personalbar=no,width=800,height=600," + "scrollbars=no,resizable=yes"); } -- 2.39.5