* Fixed bug #7582: RTE transformation should process dd element as block element
authorStanislas Rolland <typo3@sjbr.ca>
Thu, 21 Feb 2008 03:49:00 +0000 (03:49 +0000)
committerStanislas Rolland <typo3@sjbr.ca>
Thu, 21 Feb 2008 03:49:00 +0000 (03:49 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@3239 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
t3lib/class.t3lib_parsehtml_proc.php

index 2b715c2..3ed5b44 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -2,6 +2,7 @@
 
        * Fixed bug #7602: htmlArea RTE: Make the use of extended inline elements configurable
        * Fixed bug #7604: htmlArea RTE: add compatibility mode for indentation and alignment
+       * Fixed bug #7582: RTE transformation should process dd element as block element
 
 2008-02-19  Martin Kutschker  <martin.t.kutschker@blackbox.net>
 
index ae25fce..de6f4db 100755 (executable)
@@ -103,7 +103,7 @@ require_once (PATH_t3lib.'class.t3lib_parsehtml.php');
 class t3lib_parsehtml_proc extends t3lib_parsehtml {
 
                // Static:
-       var $headListTags = 'PRE,UL,OL,H1,H2,H3,H4,H5,H6,HR,ADDRESS,DL';        // List of tags for these elements
+       var $headListTags = 'PRE,UL,OL,H1,H2,H3,H4,H5,H6,HR,ADDRESS,DL,DD';     // List of tags for these elements
 
                // Internal, static:
        var $recPid = 0;                                // Set this to the pid of the record manipulated by the class.
@@ -836,6 +836,7 @@ class t3lib_parsehtml_proc extends t3lib_parsehtml {
                                        // Process based on the tag:
                                switch($tagName)        {
                                        case 'blockquote':      // Keep blockquotes, but clean the inside recursively in the same manner as the main code
+                                       case 'dd' :             // Do the same on dd elements
                                        case 'div':             // Do the same on div sections, if they were splitted
                                                $blockSplit[$k]=$tag.$this->TS_transform_db($this->removeFirstAndLastTag($blockSplit[$k]),$css).'</'.$tagName.'>'.$lastBR;
                                        break;
@@ -964,7 +965,8 @@ class t3lib_parsehtml_proc extends t3lib_parsehtml {
 
                                        // Based on tagname, we do transformations:
                                switch($tagName)        {
-                                       case 'blockquote':      // Keep blockquotes:
+                                       case 'blockquote':      // Keep blockquotes
+                                       case 'dd':              // Keep definitions
                                        case 'div':             // Keep div sections, if they were splitted
                                                $blockSplit[$k] = $tag.
                                                                        $this->TS_transform_rte($this->removeFirstAndLastTag($blockSplit[$k]),$css).