I insert this in the editor:
Save the text in the database, all is ok.
But when I re-open the text in the editor, become:
oh no!! must preserve the entity and not rebuild tags.
when javascript is disabled, the text is correct in textarea.
<pre> <div id="carosello"> <div class="scroller"> <div class="content"></pre>
Save the text in the database, all is ok.
But when I re-open the text in the editor, become:
<pre></pre> <div id="carosello"> <pre> </pre> <div class="scroller"> <pre> </pre> <div class="content">
oh no!! must preserve the entity and not rebuild tags.
when javascript is disabled, the text is correct in textarea.
Re: html code in pre tags problem
Check your page with http://validator.w3.org/ probably you aren't encoding the content of the textarea.
Another test would be to add
as the content that you want to edit, it will surely show Hello outside of the editor in your case.
Re: html code in pre tags problem
config.protectedSource with regex to exclude the content of <pre> is a solution???
Re: html code in pre tags problem
Re: html code in pre tags problem
another post with egual problem :
http://cksource.com/forums/viewtopic.php?f=6&t=16096
Re: html code in pre tags problem
Re: html code in pre tags problem
my English is poor but my problem is the same as the post above
ps.the site I'd like to use this editor on presents a lot of source code
Re: html code in pre tags problem
Re: html code in pre tags problem
& lt; & gt; they are replaced in TEXTAREA < >
Re: html code in pre tags problem
use htmlspecialchars
Examlp
Question is solved.