Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

patch for prototype compatibility

  • Loading branch information...
commit 9bc5c7f85ee20d4363ee1800fc7889f494918fe9 1 parent 569936a
urs_hunkler authored
Showing with 4 additions and 0 deletions.
  1. +4 −0 lib/editor/htmlarea.php
View
4 lib/editor/htmlarea.php
@@ -526,6 +526,7 @@ function createButton(txt) {
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 @@ function createButton(txt) {
}
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 @@ function createButton(txt) {
tb_cell.innerHTML = label;
} else {
createButton(code);
+ }
+ }
}
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.