Skip to content

Text styling isn't removed when text is deleted #870

Closed
@SpencerWoo

Description

@SpencerWoo

Prelude

When deleting text, the styling remains such that the text that moves up to replace the deleted text takes on that styling.

Reproduce

  1. Go to demo at https://alloyeditor.com/
  2. Highlight "In live demo, click/touch here C"
    (highlight the header and the first character of the next line)
  3. Delete

Actual Behavior : The text is deleted but the style remains and affects other text.

This styling inheritance is correct when some text with that style remains, but when deleting all the text, the styling should not remain and should not affect other text.

Acceptance Criteria

  • When all text that is styled with StyleA is deleted, StyleA should not exist anymore / influence text.
  • Google Docs behavior

Notes

I can reproduce with Chrome, IE11.
I cannot reproduce with Firefox.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions