Step 2: Creating an Editor Instance. Make sure that the path starts with a slash character ("/"). Insert CKEditor and TinyMCE editor content to MySQL database using PHP. CKEDITOR.replace( 'textarea_id' ); Note that textarea_id in the code above is the id attribute of the as the tag used to define the initial CKEditor instance. You can also create an inline editor from a textarea … - CKEditor Sample — Create and Destroy Editor Instances for Ajax Applications - - - Example: Use CKEditor in Web Page. What I'm trying to do is have it so that when someone types into the textarea, whatever they type appears in a div in a different part of the page. Specify some additional config options to CKEDITOR.replace() method for add upload dialog in CKEditor. This module will allow Drupal to replace textarea fields with the CKEditor 4 - a visual HTML editor, usually called a WYSIWYG editor.