[wp-trac] [WordPress Trac] #26295: wp_editor() from inside javascript

WordPress Trac noreply at wordpress.org
Wed Nov 27 20:49:52 UTC 2013


#26295: wp_editor() from inside javascript
-------------------------+------------------------------
 Reporter:  josh401      |       Owner:
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  Awaiting Review
Component:  TinyMCE      |     Version:  3.7.1
 Severity:  normal       |  Resolution:
 Keywords:  close        |
-------------------------+------------------------------

Comment (by jdgrimes):

 Ahh, I forgot that the `wp_editor()` function only echos the value, so
 this will have no affect. You will have to use output buffering:

 {{{

 ob_start();
 wp_editor( 'my_editor', 'my_editor' );
 echo addslashes( ob_get_clean() );
 }}}

--
Ticket URL: <http://core.trac.wordpress.org/ticket/26295#comment:3>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list