X-Git-Url: https://scm.cri.ensmp.fr/git/ckeditor.git/blobdiff_plain/256592bf803e851aa7fc953e08a6e9e58d970f8c..871bad8291b6dbc29d489d95d185458caab25158:/skins/ckeditor/_samples/replacebycode.html?ds=sidebyside diff --git a/skins/ckeditor/_samples/replacebycode.html b/skins/ckeditor/_samples/replacebycode.html new file mode 100644 index 0000000..beb779e --- /dev/null +++ b/skins/ckeditor/_samples/replacebycode.html @@ -0,0 +1,97 @@ + + + +
+
+ This sample shows how to automatically replace all <textarea>
elements
+ with a CKEditor instance by using a JavaScript call.
+
+ To replace a <textarea>
element, place the following call at any point
+ after the <textarea>
element or inside a <script>
element located
+ in the <head>
section of the page, in a window.onload
event handler:
+
CKEDITOR.replace( 'textarea_id' );+
+ Note that textarea_id
in the code above is the id
attribute of
+ the <textarea>
element to be replaced.
+