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

WordPress Trac noreply at wordpress.org
Tue May 19 19:42:03 UTC 2015


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

Comment (by azaozz):

 Looking at 32078.3.patch:
 - Thinking it's good to have the nested <p> removal regex when inserting
 the markers. This is currently fixed in the "wordpress" [plugin
 https://core.trac.wordpress.org/browser/branches/4.2/src/wp-
 includes/js/tinymce/plugins/wordpress/plugin.js#L321] but why should we be
 inserting invalid HTML in the first place.
 - We should keep emptying the view nodes at the beginning of the TinyMCE
 DOM cleanup. This makes it faster and fixes some edge cases where
 different "filters" on the content are triggered by the view nodes or
 serialized HTML, sometimes resulting in errors.

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


More information about the wp-trac mailing list