Page 1 of 1

inserting a content into a <p><span></span>

Posted: Tue Jul 29, 2008 10:11 am
by bugdady
hi !
I' am using tinMce 3.0.6 ,and i have a bug in a spécific situation , that's the situation :

I insert this code in the textarea containing the editor :
<textarea id="elm1" name="elm1" rows="15" cols="80" style="width: 80%">
<p>titi</p>
<p><span> </span></p>
<p>toto</p>
</textarea>

And now , i create a button to insert this content : <p> </p> using "mceInsertContent" in this code :[tinyMCE.execCommand('mceInsertContent',false,'<p> </p>')] .

then i palce the cursor in the editor , exactly into the span just after the   and i hit the buton ,i've created, to insert my content in the html output i get no visible bug , but when i click the [Get Content] link , i get this code :

<p>titi</p>
<p><span> </span>
<p>toto</p></p>
<p> </p>

it's kind of wierd !! firstable , my content is not inserted in the right place , in addition the last paragraph is moved into the previous one !!
is that a bug !!
When I remove the span tag from the editor's content ,there is no bug.

pllz,I any one has some information related to this situation , do not hesitate !! thanks

Re: inserting a content into a <p><span></spa

Posted: Tue Jul 29, 2008 10:30 am
by garvinhicking
Hi!

Have you tried to ask this in the tinymce support forums? Serendipity only embeds tinymce, so if this has bugs, it would need to be fixed by tinymce developers...

Regards,
Garvin

Posted: Tue Jul 29, 2008 11:04 am
by bugdady
Yes, i did ... but still no replies, i just post this bug hoping to find smone facing the same issue :wink: