[TYPO3-rte] How to avoid <p> inside of <blockquote>?

Uschi Renziehausen typo3news at otherone.de
Thu Feb 25 17:05:42 CET 2010


Hi Mattias,

you can select the surrounding blockquote element by selecting bloquote in the bottom bar of the rte and then you can 
add the class, like you have to to when you want to style an ul or ol or other complex elements like tables. Is is it 
that what you are looking for?

Uschi



Mattias Borell schrieb:
> Well, getting the CSS working isn't a problem, I already handle those
> "bonus" p-tags on that level, but thanks for the suggestion.
> 
> I probably wasn't clear enough in my question, but my problem is more
> with the selection of blocks in RTE. Creating a quotation is doable, but
> once it's saved and the extra p-tags are automagically added inside of
> the blockquote-tags, it seems impossible to select that block of text in
> RTE as a quotation-block, it is always recognized as a paragraph-block,
> and thus it's not possible to add block-style to the quotation itself.
> 
> So, is there any way to stop RTE from adding those p-tags? Or is RTE not
> the culprit here, are there other parts of Typo3-code involved in the
> addition of these tags?
> 
> Best of wishes,
> 
> /Mattias
> 
> Tapio Markula wrote:
>> Mattias Borell
>>> However, whenever I save content in RTE, <p>-tags are added _inside_ of
>>> the <blockquote>-tag, making it hard to set/change the class of the
>>> quotation as a GUI block-style - it's impossible to select only the
>>> quotation, the internal paragraph is always included in the selection.
>> IMO that is not a big problem - just set blockquote p {...}
>> blockquote.someclass p {...}
>>
>> like td p {} and td.someclass p {...}
>>
>> those just cause a little bit more complicated CSS but are not really 
>> harmful
>> _______________________________________________
>> TYPO3-project-rte mailing list
>> TYPO3-project-rte at lists.typo3.org
>> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-project-rte
>>
> 


More information about the TYPO3-project-rte mailing list