slate-angular
slate-angular copied to clipboard
Undo Redo doesn't work on paragraph with children.
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!
I couldn't understand this issue, could you record a GIF or VIEDO showing the issue happening? @allanatorr
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.