[wp-trac] [WordPress Trac] #32078: TinyMCE View HTML Content in Shortcode

WordPress Trac noreply at wordpress.org
Fri Apr 24 14:07:27 UTC 2015


#32078: TinyMCE View HTML Content in Shortcode
--------------------------+-----------------------------
 Reporter:  bduclos       |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Future Release
Component:  TinyMCE       |     Version:  4.2
 Severity:  normal        |  Resolution:
 Keywords:  needs-patch   |     Focuses:  javascript
--------------------------+-----------------------------
Changes (by iseulde):

 * keywords:  reporter-feedback => needs-patch
 * focuses:   => javascript
 * type:  enhancement => defect (bug)
 * milestone:  Awaiting Review => Future Release


Comment:

 Confirmed. But this didn't really work well in 4.1 either. The matched
 content is `[toggle title="Toggle Title"]↵<p>Lorem ipsum</p>↵<p>[/toggle]`
 on the first switch, and `[toggle title="Toggle Title"]Lorem
 ipsum</p>↵<p>[/toggle]` the second time.

 Now the markers are not placed correctly:

 {{{
 <p data-wpview-
 marker="%5Btoggle%20title%3D%22Toggle%20Title%22%5D%3C%2Fp%3E%0A%3Cp%3ELoremNaNpsum%3C%2Fp%3E%0A%3Cp%3E%5B%2Ftoggle%5D">[toggle
 title="Toggle Title"]</p><p>Lorem ipsum</p><p>[/toggle]</p>
 }}}

 For now I'd recommend that you use an attribute to store the content.

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


More information about the wp-trac mailing list