X-Git-Url: https://jasonwoof.com/gitweb/?p=ckeditor.git;a=blobdiff_plain;f=samples%2Finlinetextarea.html;fp=samples%2Finlinetextarea.html;h=e61b1d45e33d8547b9033d23072e5a1f2c42239a;hp=0000000000000000000000000000000000000000;hb=26ea9b471a69b563dfa9fb7c9c8d97db8e56de0e;hpb=53700a2c9aa44599d0a74cb0e0b5e5fbdead0fcd diff --git a/samples/inlinetextarea.html b/samples/inlinetextarea.html new file mode 100644 index 0000000..e61b1d4 --- /dev/null +++ b/samples/inlinetextarea.html @@ -0,0 +1,110 @@ + + + + + Replace Textarea with Inline Editor — CKEditor Sample + + + + + + +

+ CKEditor Samples » Replace Textarea with Inline Editor +

+
+

+ You can also create an inline editor from a textarea + element. In this case the textarea will be replaced + by a div element with inline editing enabled. +

+
+// "article-body" is the name of a textarea element.
+var editor = CKEDITOR.inline( 'article-body' );
+
+
+
+

This is a sample form with some fields

+

+ Title:
+

+

+ Article Body (Textarea converted to CKEditor):
+ +

+

+ +

+
+ + + + +