[wp-trac] [WordPress Trac] #27416: Tinymce wpviews cause a undo loop of sorts that inhibits the user from undoing changes
WordPress Trac
noreply at wordpress.org
Fri Mar 14 16:22:52 UTC 2014
#27416: Tinymce wpviews cause a undo loop of sorts that inhibits the user from
undoing changes
--------------------------+-------------------------
Reporter: gcorne | Owner:
Type: defect (bug) | Status: new
Priority: high | Milestone: 3.9
Component: Editor | Version: trunk
Severity: normal | Resolution:
Keywords: | Focuses: javascript
--------------------------+-------------------------
Description changed by gcorne:
Old description:
> 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,
>
> 1, Create and save a post with at least one gallery and a block of text
> before and after.
> 2. Cut some of the text and paste it somewhere.
> 3. 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 [https://core.trac.wordpress.org/browser/trunk/src/wp-
> includes/js/tinymce/plugins/wpview/plugin.js?rev=27408#L143 line 143] in
> the wpview plugin.
>
> The first undo correctly removes the pasted text
New description:
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,
1. Create and save a post with at least one gallery and a block of text
before and after.
2. Cut some of the text and paste it somewhere.
3. 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
[https://core.trac.wordpress.org/browser/trunk/src/wp-
includes/js/tinymce/plugins/wpview/plugin.js?rev=27408#L143 line 143] in
the wpview plugin.
--
--
Ticket URL: <https://core.trac.wordpress.org/ticket/27416#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list