X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=_samples%2Fjqueryadapter.html;h=2772878e9671a82e746616a81239639fc74bb99f;hb=e73319a12b56100b29ef456fd74114fe5519e01c;hp=86113c5e26a8fa0165736a19d44fc8720d7265d6;hpb=055b6b0792ce7dc53d47af606b367c04b927c2ab;p=ckeditor.git diff --git a/_samples/jqueryadapter.html b/_samples/jqueryadapter.html index 86113c5..2772878 100644 --- a/_samples/jqueryadapter.html +++ b/_samples/jqueryadapter.html @@ -1,11 +1,11 @@
-
+ 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.
+