X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=_samples%2Freplacebycode.html;h=68398ddb7c5446c4bda7ab7076cbfe175278965a;hb=3fe9cac293e090ea459a3ee10d78cbe9e1dd0e03;hp=dfcafdc7ec29d6ad8d6bb2e9288097874c46edfe;hpb=7cd80714081a8ffdf4a1a8d2c72f120ed5ef3d6d;p=ckeditor.git diff --git a/_samples/replacebycode.html b/_samples/replacebycode.html index dfcafdc..68398dd 100644 --- a/_samples/replacebycode.html +++ b/_samples/replacebycode.html @@ -1,20 +1,37 @@
-
+ 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.
+
+ +
+