I'm using the CKSource to create HTML code to be loaded into a database.
The issue I have is that one of the HTML pages I have has a form with a TEXTAREA in it.
So when I reload that code (using php) into the CKEditor, the <./TEXTAREA> tag messes things up, and the rest of my code shows up out side of the CKEditor text area window.
This is an issue because when I make my changes and resubit the code to the database, the code past the ending TEXTAREA tag gets cut off.
Anyone have any ideas?
Thanks,
-Joe
The issue I have is that one of the HTML pages I have has a form with a TEXTAREA in it.
So when I reload that code (using php) into the CKEditor, the <./TEXTAREA> tag messes things up, and the rest of my code shows up out side of the CKEditor text area window.
This is an issue because when I make my changes and resubit the code to the database, the code past the ending TEXTAREA tag gets cut off.
Anyone have any ideas?
Thanks,
-Joe
Re: Reloading HTML code with CKSouce with aTEXTAREA tag
Well, I haven't actually tried it with cke yet, but I hope that this post will give you some ideas of how to work around the problem...
Regards
/Peter
Re: Reloading HTML code with CKSouce with aTEXTAREA tag
Out of curiosity I had to try
This worked fine for me:
$(function(){
$('#my_editor').ckeditor();
CKEDITOR.instances.my_editor.setData("<textarea name='foo'>text inside the textarea.</textarea>");
});
There is probably an even better way of doing it - but it is a start.
Regards
/Peter