[wp-trac] [WordPress Trac] #30094: wp.mce.views.toViews() not handling nested shortcodes

WordPress Trac noreply at wordpress.org
Thu Apr 14 18:27:04 UTC 2016


#30094: wp.mce.views.toViews() not handling nested shortcodes
--------------------------+-----------------------------------------
 Reporter:  csixty4       |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Future Release
Component:  TinyMCE       |     Version:  4.0
 Severity:  normal        |  Resolution:
 Keywords:  needs-patch   |     Focuses:  javascript, administration
--------------------------+-----------------------------------------

Comment (by danieliser):

 I think the solution may be simple. What if you simply take a page out of
 the PHP do_shortcode book. The inner content of a typical shortcode is
 simply processed again (recurring) until no further shortcodes are
 detected.

 Is there a way that on completion of a single view render (IE the [a]
 shortcode above) then the inner content should then be passed back through
 again. Guarantees that all rendering is done correctly and the output
 should perfectly match that of do_shortcode.

 Also in the case of the OP's issue, an AJAX render function may go much
 further. I believe that that should be doable without hacks, so maybe that
 could be the solution here as well.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/30094#comment:7>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list