Meliborn
Meliborn

Reputation: 6645

How transform text areas into nicEditor by class?

I don't need transform all textareas on page. But I found only 1 method to transform - nicEditors.allTextAreas

Upvotes: 1

Views: 685

Answers (1)

Alexander
Alexander

Reputation: 23537

There are examples of it. You need to use nicEditor.panelInstance.

var options = { ... };
var editor = new nicEditor(options).panelInstance('textareaID');

Yet this works also with an element's ID. But, you can dynamically generate a random ID for your desired element and fetch it to nicEditor.panelInstance.

Upvotes: 1

Related Questions