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

WordPress Trac noreply at wordpress.org
Wed May 20 00:34:28 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):

 In 32078.4.patch: rename the functions to be more descriptive, fix the
 regex that removes the views HTML before adding undo level so it removes
 emptied views too.

 These patches exposed another error: on show MCE adds another undo level
 with the current editor content. As we have emptied the view nodes on hide
 (to stop video/audio players, etc.), the DOM in the hidden editor contains
 only the view wrappers. This seems like a good way to keep the encoded
 view text (so any invalid HTML is not removed) and let MCE make a useful
 undo level that can be used to undo any changes made in the Text editor.

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


More information about the wp-trac mailing list