+2008-02-17 Stanislas Rolland <stanislas.rolland@fructifor.ca>
+
+ * Fixed bug #7564: htmlarea RTE: context menu alignment options produce js error
2008-02-17 Martin Kutschker <martin.t.kutschker@blackbox.net>
+2008-02-17 Stanislas Rolland <stanislas.rolland@fructifor.ca>
+
+ * Fixed bug #7564: htmlarea RTE: context menu alignment options produce js error
+
2008-02-16 Stanislas Rolland <stanislas.rolland@fructifor.ca>
* Fixed bug #7560: Incorrect behaviours of block style in htmlArea RTE
var selection = editor._getSelection();
var range = editor._createRange(selection);
var parentElement = this.editor._statusBarTree.selected ? this.editor._statusBarTree.selected : this.editor.getParentElement(selection, range);
- if (typeof(target) !== "undefined") {
+ if (target) {
parentElement = target;
}
while (parentElement && (!HTMLArea.isBlockElement(parentElement) || /^li$/i.test(parentElement.nodeName))) {