From 108d928b8b5e87413c0ded772ce4296b2b9757f7 Mon Sep 17 00:00:00 2001 From: skodak Date: Sun, 21 May 2006 10:14:17 +0000 Subject: [PATCH] removed isset and merged from MOODLE_16_STABLE --- lib/editor/htmlarea/htmlarea.php | 22 ++++++++++------------ 1 file changed, 10 insertions(+), 12 deletions(-) diff --git a/lib/editor/htmlarea/htmlarea.php b/lib/editor/htmlarea/htmlarea.php index b2e4697229..ab47a482b7 100644 --- a/lib/editor/htmlarea/htmlarea.php +++ b/lib/editor/htmlarea/htmlarea.php @@ -526,6 +526,7 @@ HTMLArea.prototype._createToolbar = function () { var first = true; for (var i in this.config.toolbar) { + if (this.config.toolbar.propertyIsEnumerable(i)) { // fix for prototype.js compatibility if (!first) { createButton("linebreak"); } else { @@ -533,6 +534,7 @@ HTMLArea.prototype._createToolbar = function () { } var group = this.config.toolbar[i]; for (var j in group) { + if (group.propertyIsEnumerable(j)) { // fix for prototype.js compatibility var code = group[j]; if (/^([IT])\[(.*?)\]/.test(code)) { // special case, create text label @@ -547,6 +549,8 @@ HTMLArea.prototype._createToolbar = function () { tb_cell.innerHTML = label; } else { createButton(code); + } + } } } } @@ -1452,7 +1456,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; } @@ -1523,16 +1527,10 @@ HTMLArea.prototype._insertImage = function(image) { f_height : image.height }; this._popupDialog("", function(param) { if (!param) { // user must have pressed Cancel return false; @@ -1869,12 +1867,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