Opened 11 years ago
Closed 11 years ago
#27416 closed defect (bug) (fixed)
Tinymce wpviews cause a undo loop that inhibits the user from undoing changes
Reported by: | gcorne | Owned by: | wonderboymusic |
---|---|---|---|
Milestone: | 3.9 | Priority: | high |
Severity: | normal | Version: | 3.9 |
Component: | Editor | Keywords: | |
Focuses: | javascript | Cc: |
Description (last modified by )
When a post has one or more wpviews, it is possible to get the editor in a state where previous changes cannot be undone via ctrl+z / command+z.
To reproduce,
- Create and save a post with at least one gallery and a block of text before and after.
- Cut some of the text and paste it somewhere.
- Try to undo twice.
Expected:
The pasted text to be removed and the cut text to be restored.
Actual:
The pasted text is removed, but the cut text is not restored.
This occurs when wp.mce.views.render()
is called and updates the DOM. See line 143 in the wpview
plugin.
Attachments (1)
Change History (6)
#2
@
11 years ago
- Description modified (diff)
- Summary changed from Tinymce wpviews cause a undo loop of sorts that inhibits the user from undoing changes to Tinymce wpviews cause a undo loop that inhibits the user from undoing changes
This ticket was mentioned in IRC in #wordpress-dev by wonderboymusic. View the logs.
11 years ago
Note: See
TracTickets for help on using
tickets.
27516-01.patch fixes the issue by not (re-)rendering views when the format of content is raw. If the format is "raw", we can assume that the view has already been incorporated into the DOM.