Greetings,
I am creating a CMS for a website using ckeditor as the editor for pages. I am having a problem with putting textarea's inside inside of a page. I can insert textareas, but when i want to go back to that page to edit it, the editor glitches. It thinks that that the end of the editor is at the end of the embedded text area.
For example, if i were to put...
... it would think that the end of the email body textarea is the end of the ckeditor, which it is infact not.
This is what it looks like:

The send mail and reset form button should be inside of the ckeditor.
Is there anyway around this?
Thanks,
Bricktop
I am creating a CMS for a website using ckeditor as the editor for pages. I am having a problem with putting textarea's inside inside of a page. I can insert textareas, but when i want to go back to that page to edit it, the editor glitches. It thinks that that the end of the editor is at the end of the embedded text area.
For example, if i were to put...
<textarea cols='80' id='"ckeditor"' name='"ckeditor"' rows='"20"'> .....content... <textarea id="emailbody"></textarea>...content.... </textarea>
... it would think that the end of the email body textarea is the end of the ckeditor, which it is infact not.
This is what it looks like:

The send mail and reset form button should be inside of the ckeditor.
Is there anyway around this?
Thanks,
Bricktop

Try to run this code in your browser and see what happens:
Personally, I would use a place holder, a substitute for the TEXTAREA code at design time, and add the TEXTAREA code later to the "finished product", after the email page was saved.
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!
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.