Skip to content

"START_OF_SELECTED_AREA" character appears after undo #15619

@hypest

Description

@hypest

Describe the bug
Undoing a paragraph merge leaves behind a copy of the START_OF_SELECTED_AREA (0x0086) char.

To reproduce
Steps to reproduce the behavior:

  1. Start off with this html:
<p>Word</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>Press</p>
<!-- /wp:paragraph -->
  1. Merge the “Press” block to the one above it
  2. Undo
  3. Inspect the html via the browser dev tools and verify that the special char is there before the Press word in the second block

Expected behavior
No copies of the special char should be left in the text/markup.

Screenshots
Screenshot 2019-05-14 at 11 09 31

Desktop (please complete the following information):

  • OS: macOS 10.14.4
  • Browser Firefox 66.0.5
  • Version on hash eea04cf

Metadata

Metadata

Assignees

No one assigned

    Labels

    Needs TestingNeeds further testing to be confirmed.[Feature] Rich TextRelated to the Rich Text component that allows developers to render a contenteditable

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions