[TYPO3-RTE] tinymce_rte templates unwanted wraps and disapearing tag

Andreas Burg typo3 at andreasburg.de
Tue Mar 24 01:02:06 CET 2009


Hello,

just started using templates with tinymce_rte.

template:
<div class="floatbox">
   <a href="fileadmin/pics/dummy_150.png"><img src="fileadmin/pics/dummy_150.png" 
class="float_right" width="150" height="100" title="dummyimage" alt="dummyimage" /></a>
   <p>Absatz1</p>
   <p>Absatz2</p>
</div>

after saving:
<div class="floatbox">
   <p>
     <img src="fileadmin/pics/dummy_150.png" class="float_right" title="dummyimage" alt="dummyimage" 
height="100" width="150" />
   </p>
   <p>Absatz1</p>
   <p>Absatz2</p>
</div>
<p> </p>

in short form:
<div>
   <a><img /></a>
   <p></p>
   <p></p>
</div>

becomes:

<div>
   <p>
     <img />
   </p>
   <p></p>
   <p></p>
</div>
<p> </p>

As you can see the A-tag disapeared, the image gets wraped in P-tags, and there's an unwanted empty 
P-tag with a space in it.

to avoid this I've tried:
RTE.default.init {
   forced_root_block = false
   remove_trailing_nbsp = true
   verify_html = false
   theme_advanced_styles = Fancybox=fancybox
}

studied the wiki on TYPO3 Forge and the wiki on moxiecode. Can someone please tell me what I'm missing?

-- 
Andreas

Mailing list rules & guidelines (Mailing list Regeln & Leitfaden):
http://typo3.org/community/mailing-lists/
http://typo3.org/community/mailing-lists/mailing-list-rules-guidelines/


More information about the TYPO3-project-rte mailing list