[wp-trac] [WordPress Trac] #28313: wpviews: selecting a view can add an undo level
WordPress Trac
noreply at wordpress.org
Tue May 20 10:24:41 UTC 2014
#28313: wpviews: selecting a view can add an undo level
--------------------------+-----------------------------
Reporter: avryl | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: TinyMCE | Version: 3.9
Severity: normal | Keywords:
Focuses: |
--------------------------+-----------------------------
That's because of the class="selected" added to the wrap. If we use data-
mce-selected="true" instead, it will be automatically removed by TinyMCE.
See:
https://github.com/tinymce/tinymce/blob/master/js/tinymce/classes/UndoManager.js#L25
--
Ticket URL: <https://core.trac.wordpress.org/ticket/28313>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list