Skip to content
This repository was archived by the owner on Jan 29, 2021. It is now read-only.
This repository was archived by the owner on Jan 29, 2021. It is now read-only.

Visual toolbar not showing in multiple instance (using javascript loop) #5

@iarkaroy

Description

@iarkaroy

Hi,
I am appending textarea to div in ajax success with loop like this:
for(var i = 0; i < 5; i++) {
var html = '<textarea id="id_' + i + '"></textarea>';
$("#somediv").append(html);
$("#id_" + i).wp_editor();
}
But only the first editor is having the visual toolbar like http://screencast.com/t/Ug0WEdw2VZJZ
Any suggestion?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions