[TYPO3-RTE] alignment class gets removed from some <p> tags

Walrick Bosch lists at globalhealingcircle.net
Sat Oct 18 09:55:38 CEST 2008


Walrick Bosch wrote:
> By the way: is it possible to add alignment to <li> elements using the
> RTE? That way I would't have to add all these <p> tags within them.

Ok, I figured out this bit. I just had to add the alignment buttons.
That allowed me to add alignment to other items than the ones listed
under block format.

But the other problem remains. The new layout is like:

<p class="align-justify"></p>
<ol>
<li class="align-justify"></li>
<li class="align-justify"></li>
<li><ul><li class="align-justify"></li><li
class="align-justify"></li></ul></li>
<li class="align-justify"></li>
</ol>
<p class="align-justify"></p>
<p class="align-justify"></p>

Much more neat. But the p tags still don't keep their class.

Regards

Walrick

Walrick Bosch wrote:
> Hello,
> 
> First of all I must say I'm getting kind of tired of the things
> rtehtmlarea does on it's own. It keeps removing, changing or adding
> stuff I don't want.
> 
> My current problem:
> I have a text element which is roughly setup like this:
> 
> <p class="align-justify"></p>
> <ol>
> <li><p class="align-justify"></p><p class="align-justify"></p></li>
> <li><p class="align-justify"></p><> class="align-justify"></p></li>
> <li><p class="align-justify"></p><p
> class="align-justify"></p><ul><li></li><li></li></ul></li>
> <li><p class="align-justify"></p><p class="align-justify"></p></li>
> </ol>
> <p class="align-justify"></p>
> <p class="align-justify"></p>
> 
> Naturally with content in it.
> 
> Now when I save this, the alignment class gets removed from the first
> and the last two <p> tags. But it stays on all the <p> tags within the <ol>.
> 
> I really don't understand this.
> 
> By the way: is it possible to add alignment to <li> elements using the
> RTE? That way I would't have to add all these <p> tags within them.
> 
> Thanks for any help.
> 
> Regards,
> 
> Walrickl
> 

-- 
webmaster Global Healing Circle
www.globalhealingcircle.net


More information about the TYPO3-project-rte mailing list