X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=_samples%2Fjqueryadapter.html;h=37001af65774d11dec3908f4783e07cab29cd87c;hb=2f22c0c38f17e75be5541089076885442aaa2377;hp=86113c5e26a8fa0165736a19d44fc8720d7265d6;hpb=055b6b0792ce7dc53d47af606b367c04b927c2ab;p=ckeditor.git diff --git a/_samples/jqueryadapter.html b/_samples/jqueryadapter.html index 86113c5..37001af 100644 --- a/_samples/jqueryadapter.html +++ b/_samples/jqueryadapter.html @@ -1,11 +1,11 @@ - jQuery adapter - CKEditor Sample + jQuery Adapter — CKEditor Sample @@ -34,9 +34,35 @@ $(function() -

- CKEditor Sample +

+ CKEditor Sample — Using jQuery Adapter

+
+

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

+
+