* Fixed bug #7564: htmlarea RTE: context menu alignment options produce js error
authorStanislas Rolland <typo3@sjbr.ca>
Sun, 17 Feb 2008 20:38:08 +0000 (20:38 +0000)
committerStanislas Rolland <typo3@sjbr.ca>
Sun, 17 Feb 2008 20:38:08 +0000 (20:38 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@3201 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
typo3/sysext/rtehtmlarea/ChangeLog
typo3/sysext/rtehtmlarea/htmlarea/plugins/BlockElements/block-elements.js

index 8e0f5b3..89cb71e 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,6 @@
+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>
 
index 3b4c3d9..131cd8d 100644 (file)
@@ -1,3 +1,7 @@
+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
index c1ca4e6..80a5f87 100644 (file)
@@ -233,7 +233,7 @@ BlockElements = HTMLArea.Plugin.extend({
                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))) {