* Fixed bug #7754: htmlArea RTE: Caption should be first element in table
authorStanislas Rolland <typo3@sjbr.ca>
Tue, 4 Mar 2008 23:30:56 +0000 (23:30 +0000)
committerStanislas Rolland <typo3@sjbr.ca>
Tue, 4 Mar 2008 23:30:56 +0000 (23:30 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@3384 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
typo3/sysext/rtehtmlarea/ChangeLog
typo3/sysext/rtehtmlarea/htmlarea/plugins/TableOperations/table-operations.js

index 452baa7..1e4b08d 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2008-03-04  Stanislas Rolland  <typo3@sjbr.ca>
+
+       * Fixed bug #7754: htmlArea RTE: Caption should be first element in table
+
 2008-03-03  Ingo Renner  <ingo@typo3.org>
 
        * Release of TYPO3 4.2.0beta3
 2008-03-03  Ingo Renner  <ingo@typo3.org>
 
        * Release of TYPO3 4.2.0beta3
index 641afbc..cc6c6da 100644 (file)
@@ -1,3 +1,7 @@
+2008-03-04  Stanislas Rolland  <typo3@sjbr.ca>
+
+       * Fixed bug #7754: htmlArea RTE: Caption should be first element in table
+
 2008-03-02  Stanislas Rolland  <typo3@sjbr.ca>
 
        * Fixed bug #7725: buttons.left(right,center,justifyfull).useClass not honored by htmlArea RTE
 2008-03-02  Stanislas Rolland  <typo3@sjbr.ca>
 
        * Fixed bug #7725: buttons.left(right,center,justifyfull).useClass not honored by htmlArea RTE
index cd7d47b..076a0c2 100644 (file)
@@ -272,7 +272,7 @@ TableOperations = HTMLArea.Plugin.extend({
                                                }
                                                if (!caption) {
                                                        var caption = doc.createElement("caption");
                                                }
                                                if (!caption) {
                                                        var caption = doc.createElement("caption");
-                                                       table.appendChild(caption);
+                                                       table.insertBefore(caption, table.firstChild);
                                                }
                                                caption.innerHTML = val;
                                        } else {
                                                }
                                                caption.innerHTML = val;
                                        } else {