X-Git-Url: https://scm.cri.ensmp.fr/git/ckeditor.git/blobdiff_plain/256592bf803e851aa7fc953e08a6e9e58d970f8c..871bad8291b6dbc29d489d95d185458caab25158:/skins/ckeditor/_samples/jqueryadapter.html?ds=inline diff --git a/skins/ckeditor/_samples/jqueryadapter.html b/skins/ckeditor/_samples/jqueryadapter.html new file mode 100644 index 0000000..2772878 --- /dev/null +++ b/skins/ckeditor/_samples/jqueryadapter.html @@ -0,0 +1,99 @@ + + + +
+
+ This sample shows how to load CKEditor and configure it using the
+ jQuery adapter.
+ In this case the jQuery adapter is responsible for transforming a <textarea>
+ element into a CKEditor instance and setting the configuration of the toolbar.
+
+ CKEditor instance with custom configuration set in jQuery can be inserted with the + following JavaScript code: +
+$(function()
+{
+ var config = {
+ skin:'v2'
+ };
+
+ $('.textarea_class').ckeditor(config);
+});
+
+ Note that textarea_class in the code above is the
+ class attribute of the <textarea> element to be replaced with
+ CKEditor. Any other jQuery selector can be used to match the target element.
+