[TYPO3-RTE] Using blockquote in RTE

Mattias Borell Mattias.Borell at med.lu.se
Mon Feb 23 14:33:07 CET 2009


Hi all.

I've added <blockquote>-tags with a few css classes to one of my 
sitedesigns, to achieve nicer "quotes" that highlight certain text from 
the pages. My problem now is to get this to play nice with the htmlArea 
RTE (1.5.6, using Typo3 4.1.7).


A few issues:

1) To let editors add blockquotes, I activated the inserttag-button. Is 
there a better or more simple way?

2) Getting rid of the inline style ("margin-bottom:0;margin-top:0;") 
that gets forced upon blockquotes. This works with the parseFunc config 
presented below.

3) When adding a blockquote-tag with the RTE, <p>&nbsp;</p> is added 
both before and after the blockquote. The config below _should_ fix 
that, but it doesn't... Any ideas?

4) Class-info added as attribute to the blockquote-tags are dropped by 
RTE saves. How can I get RTE to accept those? I've tried to add class as 
an allowed attribute to blockquote in page TSconfig, but that doesn't 
seem to help...


# Setup for RTE parseFunc
lib.parseFunc_RTE {
   externalBlocks = table, blockquote, ol, ul, div, dl, address
   externalBlocks {
     blockquote.stripNL = 1
     blockquote.callRecursive = 1
     blockquote.callRecursive.tagStdWrap.HTMLparser = 1
     blockquote.callRecursive.tagStdWrap.HTMLparser {
       tags.blockquote.fixAttrib.style.unset = 1
     }
   }
}



-- 
Mattias Borell
Sysadmin // Developer
LUDC - Lund University Diabetes Centre
CRC, Entrance 72, House 60, floor 13
SE 205 02, Malmö, SWEDEN
Tel: +46 40 39 12 27


More information about the TYPO3-project-rte mailing list