• I added a new button, when click i want to duplicate the editor in post.php

    I used the code:

    <?php
    echo wp_editor( ”, ‘newdetails’, array(
    ‘dfw’ => true,
    ‘tabfocus_elements’ => ‘insert-media-button,save-post’,
    ‘editor_height’ => 360,
    ‘textarea_name’ => ‘newdetails[]’,
    ) ); ?>

    my problem is that when a new editor is created, all the function in it and scripts are not working.

    Anybody can help me how to duplicate, clone or create new editor when click on the button

The topic ‘duplicate the editor dynamically’ is closed to new replies.