1ShadMehr Sample — Using jQuery Adapter

This sample shows how to load 1ShadMehr and configure it using the jQuery adapter. In this case the jQuery adapter is responsible for transforming a <textarea> element into a 1ShadMehr instance and setting the configuration of the toolbar.

1ShadMehr 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 1ShadMehr. Any other jQuery selector can be used to match the target element.