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

WordPress Trac noreply at wordpress.org
Wed Nov 27 20:26:33 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        |
-------------------------+------------------------------
Changes (by jdgrimes):

 * keywords:   => close


Comment:

 You should be escaping the editor code, perhaps with `addslashes()`.

 {{{
 $('#my_test').replaceWith('<?php addslashes( wp_editor('my_editor',
 'my_editor') ); ?>');
 }}}

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


More information about the wp-trac mailing list