[wp-trac] [WordPress Trac] #24177: Items (like Galleries) Disappearing from Visual Editor

WordPress Trac noreply at wordpress.org
Fri Apr 26 02:38:02 UTC 2013


#24177: Items (like Galleries) Disappearing from Visual Editor
--------------------------+------------------------------
 Reporter:  crushgear     |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  TinyMCE       |     Version:  3.1
 Severity:  major         |  Resolution:
 Keywords:  needs-patch   |
--------------------------+------------------------------

Comment (by azaozz):

 There is a connection between autosave and TinyMCE: each time we do
 autosave, we trigger the 'save content' functionality in TinyMCE to move
 the content from the iframe to the underlying textarea. This is a pretty
 complex process: the DOM gets serialized, cleanup and quite a few filters
 run before and after that, etc. The gallery placeholder image is replaced
 with the gallery shortcode at this time too.

 This looks like another new Chrome bug. The gallery placeholder image
 doesn't disappear, however the style for it is not applied any more...

 It seems there may be a conflict between the placeholder image class name
 and the TinyMCE plugin name, both are `wpGallery`. That sounds very weird
 but changing the class name seems to fix it here. @crushgear,
 @johnjamesjacoby could you see if this fixes it for you too.

 If that doesn't work, another workaround would be to add inline style to
 the placeholder image. However that will prevent themes from changing it
 in editor-style.css.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/24177#comment:4>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list