[wp-trac] [WordPress Trac] #34329: Render TinyMCE views before applying wpautop to content

WordPress Trac noreply at wordpress.org
Fri Oct 16 17:01:31 UTC 2015


#34329: Render TinyMCE views before applying wpautop to content
-----------------------------+-----------------------------
 Reporter:  danielbachhuber  |      Owner:
     Type:  defect (bug)     |     Status:  new
 Priority:  normal           |  Milestone:  Awaiting Review
Component:  TinyMCE          |    Version:
 Severity:  normal           |   Keywords:
  Focuses:                   |
-----------------------------+-----------------------------
 `wpautop` is run on `BeforeSetContent`:
 https://core.trac.wordpress.org/browser/tags/4.3/src/wp-
 includes/js/tinymce/plugins/wordpress/plugin.js#L115

 mce views are rendered on `SetContent`:
 https://core.trac.wordpress.org/browser/tags/4.3/src/wp-
 includes/js/tinymce/plugins/wpview/plugin.js#L223

 When using mce views to render shortcode previews, our render callback
 receives the full shortcode with `wpautop` unexpectedly applied. I'd
 expect to have the shortcode without `wpautop` yet applied, as is the
 behavior when rendering shortcodes on `the_content`

 From https://github.com/fusioneng/Shortcake/issues/471

--
Ticket URL: <https://core.trac.wordpress.org/ticket/34329>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list