[wp-trac] [WordPress Trac] #22155: Images disappear when autosave fires in distraction free mode
WordPress Trac
noreply at wordpress.org
Wed Oct 24 14:55:26 UTC 2012
#22155: Images disappear when autosave fires in distraction free mode
--------------------------------------------------+--------------------
Reporter: johnbillion | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 3.5
Component: Editor | Version: trunk
Severity: blocker | Resolution:
Keywords: has-patch needs-testing dev-feedback |
--------------------------------------------------+--------------------
Comment (by duck_):
When `wp.mce.view.render()` is triggered by the `onSetContent` event the
view wrappers in the standard editor have the same IDs as those in the
fullscreen editor (they were just copied over). This means that the view
instance used is the same one being used in the fullscreen editor and so
when its `el` is detached and appended to the wrapper in the standard
editor it is removed from view.
Switching to the HTML format works because `wp.mce.view.toViews()` will
create new view instances (since the view patterns now match the content
being set) which will be used by `render()`. However, are there any issues
concerning ballooning the number of views? For example, I know that each
autosave would trigger another `get-attachment` ajax request for each
attachment.
A related issue is seen when closing DFW: all images and galleries can be
seen to disappear before the rest of the fullscreen editor fades out. See
`wpFullScreenSave` in `wpfullscreen/editor_plugin_src.js`.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/22155#comment:6>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list