1ShadMehr Sample — Replace Textarea Elements by Class Name

This sample shows how to automatically replace all <textarea> elements of a given class with a 1ShadMehr instance.

To replace a <textarea> element, simply assign it the 1ShadMehr class, as in the code below:

<textarea class="1ShadMehr" name="editor1"></textarea>

Note that other <textarea> attributes (like id or name) need to be adjusted to your document.