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

Found a bug? Tell us!!
Post Reply
bugdady
Posts: 2
Joined: Tue Jul 29, 2008 9:36 am

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

Post 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
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

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

Post 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
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
bugdady
Posts: 2
Joined: Tue Jul 29, 2008 9:36 am

Post by bugdady »

Yes, i did ... but still no replies, i just post this bug hoping to find smone facing the same issue :wink:
Post Reply