[wp-trac] [WordPress Trac] #26959: Incorporate preview of inserted galleries in the visual editor using a new version of the wpview tinymce plugin

WordPress Trac noreply at wordpress.org
Tue Mar 18 03:36:28 UTC 2014


#26959: Incorporate preview of inserted galleries in the visual editor using a new
version of the wpview tinymce plugin
----------------------------+-----------------------------
 Reporter:  gcorne          |       Owner:
     Type:  task (blessed)  |      Status:  new
 Priority:  normal          |   Milestone:  3.9
Component:  Editor          |     Version:
 Severity:  normal          |  Resolution:
 Keywords:                  |     Focuses:  ui, javascript
----------------------------+-----------------------------

Comment (by gcorne):

 [attachment:26959-09.patch 26959-09.patch] uses {{{attr()}}} instead of
 {{{data()}}} to grab the data when editing the gallery, which fixes an
 issue where the user updates the gallery and then attempts to edit the
 gallery again. In the context of TinyMCE, it is better to use {{{attr()}}}
 than {{{data()}}} because the DOM is rebuilt so we want to make sure that
 the shortcode is always represented in the text of the DOM, not just in
 memory.

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


More information about the wp-trac mailing list