Reputation: 1
I've got a personnal site which will never be online.
I am using a Form with CKEDITOR Textarea.
I want PHP to Post the HTML Source Code generated by CKEDITOR in the Textarea in my MYSQL Database.
How to FORCE the PHP Code to POST HTML language in my data base ?
My Code : http://alex69.dyndns.info/meridien/MyCode.doc
Upvotes: 0
Views: 443
Reputation: 2306
Use the updateElement()
method to update the textarea if thats what you want to do. But I think this is automatically handled by the ckeditor instance when the form is submitted by php. Your ckeditor content will be in the id of the textarea itself on which you binded ckeditor when you post your form.
CKEDITOR.instances.editor1.updateElement();
alert( document.getElementById( 'editor1' ).value ); // The current editor data.
Upvotes: 1