X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=_samples%2Freplacebycode.html;h=fc0bb8c9b98ce850cd0f732a697c904063c8b805;hb=2f22c0c38f17e75be5541089076885442aaa2377;hp=bd3f54d4c400d2c8f7f4c332f6b249ba0b05b78e;hpb=941b0a9ba4e673e292510d80a5a86806994b8ea6;p=ckeditor.git diff --git a/_samples/replacebycode.html b/_samples/replacebycode.html index bd3f54d..fc0bb8c 100644 --- a/_samples/replacebycode.html +++ b/_samples/replacebycode.html @@ -1,20 +1,37 @@ - Replace Textarea by Code - CKEditor Sample + Replace Textarea by Code — CKEditor Sample -

- CKEditor Sample +

+ CKEditor Sample — Replace Textarea Elements Using JavaScript Code

+
+

+ 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. +

+
+