Skip to content

Undo Redo doesn't work on paragraph with children. #261

Open

Description

@sherminatorrr

Hello!

I have this object for the initial editor value, given from the official slate example:

initialValue = [
{
      type: 'paragraph',
      children: [
          { text: 'This is editable ' },
          { text: 'rich', bold: true },
          { text: ' text, ' },
          { text: 'much', bold: true, italic: true },
          { text: ' better than a ' },
          { text: '<textarea>' },
          { text: '!' }
      ]
  }
]

When I mark in the editor for example "text, much" and remove it, then press ctrl+z and after it ctrl+y multiple times, more text gets removed then I initially removed ("text, much").

Thank you for possible solutions!

Activity

  1. pubuzhixing8 commented on Mar 30, 2024

    @pubuzhixing8
    Collaborator

    I couldn't understand this issue, could you record a GIF or VIEDO showing the issue happening? @allanatorr

  2. theblackiki commented on Nov 13, 2024

    @theblackiki

    I think what he said can be described in the following steps:
    (1) remove the "text,much";
    (2)ctrl + z only once time, "text,much" shows up again;
    (3)ctrl + y several times, only the "text,much" would be removed in theory, but he said more texts be removed ,rather than only the "text,much" one.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      ⌂ Proxy