Skip to content

Selecting adjacent blocks of a nestable block and changing type can cause weird behaviours example: #41

Description

@mitermayer

Toggling block type to H1

<SELECTION_START><p>asd</p>
<bloquote>
<ul><SELECTION_END>
   <li>
      foo<CURSOR_IS_HERE />
   </li>
</u>
</bloquote>

Expected bahaviour:

<h1>asd</h1>
<bloquote>
<ul>
   <li>
      foo<CURSOR_IS_HERE />
   </li>
</u>
</bloquote>

Whats happening:

<h1>asd</h1>
<h1>
<ul>
   <li>
      foo<CURSOR_IS_HERE />
   </li>
</u>
</h1>

An invalid nesting is created

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions