danielebarchiesi@0: danielebarchiesi@0: danielebarchiesi@0: danielebarchiesi@0:
danielebarchiesi@0:
danielebarchiesi@0: This sample shows how to automatically replace all <textarea>
elements
danielebarchiesi@0: with a CKEditor instance by using a JavaScript call.
danielebarchiesi@0:
danielebarchiesi@0: To replace a <textarea>
element, place the following call at any point
danielebarchiesi@0: after the <textarea>
element or inside a <script>
element located
danielebarchiesi@0: in the <head>
section of the page, in a window.onload
event handler:
danielebarchiesi@0:
CKEDITOR.replace( 'textarea_id' );danielebarchiesi@0:
danielebarchiesi@0: Note that textarea_id
in the code above is the id
attribute of
danielebarchiesi@0: the <textarea>
element to be replaced.
danielebarchiesi@0: