Run several editors on the same page.
<textarea id="entry-title">Article title</textarea>
<textarea id="entry-body">
<p>First paragraph.</p>
<p>Second paragraph.</p>
</textarea>
const title = Redactor('#entry-title');
const body = Redactor('#entry-body');
You can also initialize every matching host in one call. Redactor returns an array when the selector matches more than one element:
<textarea class="entry">Article title</textarea>
<textarea class="entry">
<p>First paragraph.</p>
<p>Second paragraph.</p>
</textarea>
const editors = Redactor('.entry');