How to create WP Editor using javascript

Question

I am trying to create some kind of repeated fields and for that, I want to create a new wp editor with some unique ID.

So my question is there any way to create wp_editor using any js? same as we get using <?php wp_editor() ?> WordPress function.

I have tried using

tinyMCE .init( { mode : "exact" , elements : "accordion_icon_description_"+response.success.item_count });

but it prints very basic editor which is I think not same as of WordPress post content field editor

--------------------------------------------------

>>> Share a link to this question, just copy and paste the code bellow on your web page <<<

<a href="https://www.wptricks.com/question/how-to-create-wp-editor-using-javascript/">

How to create WP Editor using javascript</a>
0
, , , 1naveengiri 3 years 0 Answers 55 views 0

Leave an answer