[wp-trac] [WordPress Trac] #45790: Hit undo duplicates an inline image
WordPress Trac
noreply at wordpress.org
Tue Jan 1 12:55:44 UTC 2019
#45790: Hit undo duplicates an inline image
-----------------------------+------------------------------
Reporter: La Geek | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Editor | Version: 5.0.2
Severity: normal | Resolution:
Keywords: has-screenshots | Focuses:
-----------------------------+------------------------------
Comment (by subrataemfluence):
what I have found is when I hit an `Enter` before the first character of a
paragraph block, the `content` becomes empty although the focus still
stays inside that block.
Please see this screencast (Sorry for the poor quality!):
https://drive.google.com/file/d/1NQbCtgU7urnTqWgAjWqvY1Is-tHx9-gY/view
Not sure if this helps but looks like the `Enter` key is removing current
value (`He`) from `content` node of the object and making it empty. It
should instead update the value of it with `\nHe`. Probably because it is
making it empty, an additional "empty" block is being created?
--
Ticket URL: <https://core.trac.wordpress.org/ticket/45790#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list