Initialize TinyMCE on multiple textareas - variable scope issue? Initialize TinyMCE on multiple textareas - variable scope issue? wordpress wordpress

Initialize TinyMCE on multiple textareas - variable scope issue?


Still can't comment...

Rather than adding them using their ID, why can't you use:

settings.selector: "textarea.wp-editor-area"

This would init all matching textareas? That way there's no need for a loop.