Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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

Open
@sherminatorrr

Description

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!

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

        AltStyle によって変換されたページ (->オリジナル) /