Tui.editor: Ability to create multiple editor using class

Created on 2 Mar 2018  路  3Comments  路  Source: nhn/tui.editor

Version

1.0.4

Test Environment

Firefox Developer Edition 59.0b13 (64-bit), macOS High Seirra 10.13.3

Current Behavior

I am trying to create multiple tui editors using class, but it only renders the editor for the first div.

Expected Behavior

Is there any way I can create multiple tui editors on the same html page using class? Or will I have to use the ids for each div and then create tui editors from it?

Question

All 3 comments

I think I'm closing this issue.
feel free to open this issue again if you have a further question on this.

By class, I meant using class selectors to load/render multiple toast ui editors.

Currently I have to do this :

$(".editor").each(function () {
        $(this).tuiEditor({
            initialEditType: 'markdown',
            previewStyle: 'vertical',
            height: '300px'
        });
    });

Is it possible to allow something like below instead :

$(".editor").tuiEditor({
            initialEditType: 'markdown',
            previewStyle: 'vertical',
            height: '300px'
});
Was this page helpful?
0 / 5 - 0 ratings

Related issues

hellojsna picture hellojsna  路  4Comments

aarangara picture aarangara  路  3Comments

kelvinkoko picture kelvinkoko  路  3Comments

alirizaadiyahsi picture alirizaadiyahsi  路  4Comments

tirli picture tirli  路  5Comments