 <p>Why not use Jquery to call CKEditor to replace your div...seems much more straightforward:</p> <pre><code>$( 'textarea' ).ckeditor(); </code></pre> <p>Reference Here: <a href="http://ckeditor.com/blog/CKEditor_for_jQuery" rel="nofollow">http://ckeditor.com/blog/CKEditor_for_jQuery</a></p>