inserting a content into a <p><span></span>
Posted: Tue Jul 29, 2008 10:11 am
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
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