Fixed bug #9444: htmlArea RTE: Incorrect assigment of class to one line <ol> in Firefox
authorStanislas Rolland <typo3@sjbr.ca>
Thu, 2 Oct 2008 14:41:50 +0000 (14:41 +0000)
committerStanislas Rolland <typo3@sjbr.ca>
Thu, 2 Oct 2008 14:41:50 +0000 (14:41 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@4273 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
typo3/sysext/rtehtmlarea/ChangeLog
typo3/sysext/rtehtmlarea/htmlarea/plugins/BlockStyle/block-style.js

index ad8d470..cc35e2c 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2008-10-02  Stanislas Rolland  <typo3@sjbr.ca>
+
+       * Fixed bug #9444: htmlArea RTE: Incorrect assigment of class to one line <ol> in Firefox
+
 2008-10-01  Stanislas Rolland  <typo3@sjbr.ca>
 
        * Fixed bug #9464: htmlArea RTE: url auto-detect feature not working in Firefox
index 61edc22..f133c69 100644 (file)
@@ -1,3 +1,7 @@
+2008-10-02  Stanislas Rolland  <typo3@sjbr.ca>
+
+       * Fixed bug #9444: htmlArea RTE: Incorrect assigment of class to one line <ol> in Firefox
+
 2008-10-01  Stanislas Rolland  <typo3@sjbr.ca>
 
        * Fixed bug #9464: htmlArea RTE: url auto-detect feature not working in Firefox
index fa8ba26..580c910 100644 (file)
@@ -194,9 +194,9 @@ BlockStyle = HTMLArea.Plugin.extend({
                if (HTMLArea.is_gecko && !HTMLArea.is_safari && !HTMLArea.is_opera) {
                        var selection = this.editor._getSelection();
                        try {
-                               while (range = selection.getRangeAt(i++)) {
+                               while ((range = selection.getRangeAt(i++))) {
                                        block = this.editor.getParentElement(selection, range);
-                                       blocks.push(block);
+                                       blocks.push(this.editor._statusBarTree.selected ? this.editor._statusBarTree.selected : block);
                                }
                        } catch(e) {
                                /* finished walking through selection */