From: Stanislas Rolland Date: Tue, 4 Mar 2008 23:30:56 +0000 (+0000) Subject: * Fixed bug #7754: htmlArea RTE: Caption should be first element in table X-Git-Tag: TYPO3_4-2-0RC1~121 X-Git-Url: http://git.typo3.org/Packages/TYPO3.CMS.git/commitdiff_plain/66d5d5a546275268dabe1dbfacd8cd73821ef57f * Fixed bug #7754: htmlArea RTE: Caption should be first element in table git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@3384 709f56b5-9817-0410-a4d7-c38de5d9e867 --- diff --git a/ChangeLog b/ChangeLog index 452baa72afd..1e4b08df699 100755 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2008-03-04 Stanislas Rolland + + * Fixed bug #7754: htmlArea RTE: Caption should be first element in table + 2008-03-03 Ingo Renner * Release of TYPO3 4.2.0beta3 diff --git a/typo3/sysext/rtehtmlarea/ChangeLog b/typo3/sysext/rtehtmlarea/ChangeLog index 641afbc5817..cc6c6da1829 100644 --- a/typo3/sysext/rtehtmlarea/ChangeLog +++ b/typo3/sysext/rtehtmlarea/ChangeLog @@ -1,3 +1,7 @@ +2008-03-04 Stanislas Rolland + + * Fixed bug #7754: htmlArea RTE: Caption should be first element in table + 2008-03-02 Stanislas Rolland * Fixed bug #7725: buttons.left(right,center,justifyfull).useClass not honored by htmlArea RTE diff --git a/typo3/sysext/rtehtmlarea/htmlarea/plugins/TableOperations/table-operations.js b/typo3/sysext/rtehtmlarea/htmlarea/plugins/TableOperations/table-operations.js index cd7d47bc58b..076a0c23691 100644 --- a/typo3/sysext/rtehtmlarea/htmlarea/plugins/TableOperations/table-operations.js +++ b/typo3/sysext/rtehtmlarea/htmlarea/plugins/TableOperations/table-operations.js @@ -272,7 +272,7 @@ TableOperations = HTMLArea.Plugin.extend({ } if (!caption) { var caption = doc.createElement("caption"); - table.appendChild(caption); + table.insertBefore(caption, table.firstChild); } caption.innerHTML = val; } else {