Get CKEditor textarea content using javascript [SOLVED]

There is this useful getData() function to retrieve the contents of a ckEDITOR text area element:

If you insert a ckEDITOR called ‘my_editor‘ then you can read the value that the user typed inside the editor’s textarea using this JS

       var editorText = CKEDITOR.instances.my_editor.getData();

Hope it helps! :)

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Post Navigation