I have run into this same problem. I thought I could get around it by using a div tag for the editor but then when the form is submitted, the information in the div is not sent to the server obviously because it is not a form element. Any help would be greatly appreciated!
Yes, that may correct that issue, but correct me if im wrong, when outputting that code to page, the browser will not render it as html code, rather as just text. It will output "<textarea...>" rather then an actual textarea.
Re: Text Area Problem
Re: Text Area Problem
Re: Text Area Problem
htmlspecialchars()
on the content before sending it to the browser fixed the issue. An example would look like this:
Another important command to run if you are pulling from MySQL is stripslashes()
Hope this helps some people out!
Re: Text Area Problem
Re: Text Area Problem
When you output to the edit page ( the one with ckeditor ) you use both stripslashes() and htmlspecialchars().
This is not just an idea, I am using it in a small CMS I wrote and everything is working as it should.
Re: Text Area Problem