Quantcast
Channel: WordPress.org Forums » All Posts
Viewing all articles
Browse latest Browse all 134500

AyoubEzzo on "duplicate the editor dynamically"

$
0
0

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


Viewing all articles
Browse latest Browse all 134500

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>