[TYPO3-RTE] Table in Unordered List

Tapio Markula tapio.markula at xetpoint.fi
Sat Nov 29 14:57:35 CET 2008


Uschi Renziehausen
> lib.parseFunc_RTE:
> 
> lib.parseFunc_RTE < lib.parseFunc
> lib.parseFunc_RTE {
>     //  makelinks >
> 
>     # @description Parse certain block elements seperately
>     externalBlocks = table, blockquote, ol,ul, div, dl, dd
>     externalBlocks {
>         # The blockquote content is passed into parseFunc again...
>         blockquote.stripNL=1
>         blockquote.callRecursive=1
>         blockquote.callRecursive.tagStdWrap.HTMLparser = 1
> 
>         div.stripNL=1
>         div.callRecursive = 1
>        
>         dl.stripNL=1
>         dl.callRecursive = 1
>        
>         dd.stripNL=1
>         dd.callRecursive = 1
>        
>         ol.stripNL=1
>         ol.stdWrap.parseFunc = < lib.parseFunc
> 
>         ul.stripNL=1
>         ul.stdWrap.parseFunc = < lib.parseFunc
> 
>         table.stripNL=1
>         table.stdWrap.HTMLparser = 1
> 
> 
>         table.stdWrap.HTMLparser.keepNonMatchedTags = 1
>         # Do NOT add any unwanted p elements in table cells, and do NOT 
> remove any p-elements that have been added by authors!   
>         table.HTMLtableCells=1
>         table.HTMLtableCells.default.stdWrap.parseFunc =< lib.parseFunc
>     }
>     nonTypoTagStdWrap.encapsLines {
>         encapsTagList = div,p,pre,h1,h2,h3,h4,h5,h6,dt,hr
>         nonWrappedTag = P
>         innerStdWrap_all.ifBlank = &nbsp;
> 
>     }
>     nonTypoTagStdWrap.HTMLparser = 1
>     nonTypoTagStdWrap.HTMLparser {
>         keepNonMatchedTags = 1
>         htmlSpecialChars = 2
>     }
> }
> 

> Hmmm, but if ol,ul etc. are not handled externa blocks, they cannot be 
> parsed recursively, so you will end up with links and other stuff inside 
>     ol,ul,td etc. not rendered correctly. And anyways, you can define 
> which parseFunc is responsible for which element.

maybe the problem is that tables has not handled recursively - anyway 
the problems seems to relate with externalBlocks


More information about the TYPO3-project-rte mailing list