When I save my page after adding a textarea to it, every form element after the textarea ends up outside the ckeditor editor.
It seems that the textarea within the editor is closing the ckeditor textarea that contains it.
Is there a way around this?
It seems that the textarea within the editor is closing the ckeditor textarea that contains it.
Is there a way around this?
Re: Adding textarea in editor
I'm trying to add forms using ckeditor. Most form elements get added inside the ckeditor ok until you add a textarea. Because now there is a nested textarea inside the main textarea that gets converted to a ckeditor, the nested textarea closing tags closes the first textarea tag so everything after that is now outside the ckeditor so is uneditable.
Re: Adding textarea in editor
You need to encode the html tags within the textarea. I'm using php, so htmlentities() works for me.
Re: Adding textarea in editor
Yeah, if you echo a closing textarea tag into a textarea tag, it's just going to close the textarea you are echo -ing into.
http://bugs.php.net/bug.php?id=30728
http://php.net/manual/en/function.htmlspecialchars.php
Thanks,
Zanpakutō