Quantcast
Channel: How to load wp_editor() through AJAX/jQuery - WordPress Development Stack Exchange
Browsing latest articles
Browse All 9 View Live

Answer by Isaac Levi Felix Salinas for How to load wp_editor() through...

This will work on admin pages. To append a new wp editor to a container by JS AJAX: 1) Create an wp_ajax function in functions.php to return the wp_editor 2) Create a jQuery script to request a new...

View Article



Answer by Tim Matz for How to load wp_editor() through AJAX/jQuery

I managed it in this way: First you need to call wp_editor at the main page, where from you call ajax. But you must wrap it in hidden div: <div style="display:none"> <?php wp_editor( '',...

View Article

Answer by Goran Jakovljevic for How to load wp_editor() through AJAX/jQuery

After struggling with it, found the solution which works, in a callback after you add new element: tinymce.execCommand( 'mceAddEditor', true, element.id ); Its strange that there is zero documentation...

View Article

Answer by T.Todua for How to load wp_editor() through AJAX/jQuery

Finally, working solution: add action in wordpress, lets say My_Action_Name (also note, textarea ID My_TextAreaID_22 ): add_action('wp_ajax_My_Action_Name', function(){ wp_editor(...

View Article

Answer by Dileep Kumar Awasthi for How to load wp_editor() through AJAX/jQuery

Use this code, hope it will help: wp_editor( '', 'custom_editor_id' ); \_WP_Editors::enqueue_scripts(); print_footer_scripts(); \_WP_Editors::editor_js(); More detail can be found here.

View Article


Answer by bueltge for How to load wp_editor() through AJAX/jQuery

The the usable solution from @toscho on github. He build this nice result also for a question here, see his answer for more details.

View Article

Answer by Dale Sattler for How to load wp_editor() through AJAX/jQuery

To get the quicktags to show up, you need to re instantiate them within your ajax oncomplete handler. quicktags({id : 'editorcontentid'}); My ajax success handler looks like this; success:...

View Article

Answer by shahar for How to load wp_editor() through AJAX/jQuery

You need to call the editor init again once you add your ajax textarea, I did it like this: $.fn.tinymce_textareas = function(){ tinyMCE.init({ skin : "wp_theme" // other options here }); }; Then call...

View Article


How to load wp_editor() through AJAX/jQuery

I have a theme that is custom developed and really complex. One of the things that I have is multiple content areas where users can specify content for specific tabs. I load multiple instances of the...

View Article

Browsing latest articles
Browse All 9 View Live




Latest Images