[TYPO3-RTE] HR tags wrapped with p

Stig Kjeldsen sk at itu.dk
Mon Jul 28 11:10:32 CEST 2008


Hello Einar

I have had the same problem, and solved it this way:

In your TSSetup:

lib.parseFunc_RTE.externalBlocks.table.stdWrap.HTMLparser.tags.table.fixAttrib.class.list 
 >

lib.parseFunc_RTE.allowTags = embed, object, param, a, abbr, acronym, 
address, blockquote, b, br, caption, cite, code, div, em, fieldset, h1, 
h2, h3, h4, h5, h6, hr, i, img, legend, li, link, ol, p, pre, q, 
sdfield, span, strong, sub, sup, table, tbody, td, th, tr, tt, u, ul

### removes <p> around <hr> & <table>
lib.parseFunc_RTE.externalBlocks = table,hr,ul,ol,blockquote
lib.parseFunc_RTE.externalBlocks.hr.stripNL = 1


Best regards

Stig Kjeldsen

Einar Gislason skrev:
> Hi
> 
> I'm having some problems with the hr element in the RTE. Every time I
> insert the hr element it gets wrapped with a p tag. This not only
> generates an validation error, but also inserts extra space around the
> hrin IE6.
> 
> Even worse, if the hr is between two sentences, the first one comes
> out fine, but the second is wrapped in the p tag with the hr. The
> structure ofthe html then looks like this: <p><hr><p>text</p></p>
> 
> I tested this in rtehtmlarea 1.5.5 and 1.7.4, with and
> withoutproc.allowTagsOutside = hr.
> 
> Does anybody have a solution to this problem?
> 
> 


More information about the TYPO3-project-rte mailing list