X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;ds=sidebyside;f=_samples%2Fjqueryadapter.html;h=2772878e9671a82e746616a81239639fc74bb99f;hb=48b1db88210b4160dce439c6e3e32e14af8c106b;hp=86113c5e26a8fa0165736a19d44fc8720d7265d6;hpb=9afde8772159bd3436f1f5b7862960307710ae5a;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 @@ - 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. +

+
+