X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=_samples%2Freplacebycode.html;h=beb779e5e56837b8c198829b5bcca267beadf704;hb=48b1db88210b4160dce439c6e3e32e14af8c106b;hp=60720e8bb5adf49410f10feb138e7b1937346872;hpb=ea7e3453c7b0f023b050aca6d9f83ab372860d91;p=ckeditor.git diff --git a/_samples/replacebycode.html b/_samples/replacebycode.html index 60720e8..beb779e 100644 --- a/_samples/replacebycode.html +++ b/_samples/replacebycode.html @@ -1,20 +1,37 @@ - Sample - CKEditor - + 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. +

+
+
-
-

-
- - -

-

-
- - +

+

+ + + -

-

- -

-
+ //]]> + +

+

+ +

+