worktile / worktile/slate-angular
Undo Redo doesn't work on paragraph with children.
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 188
- Forks
- 30
- Avg merge
- 3d 13h
- Merged PRs (30d)
- 4
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!
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
No source files or tests are named. Reproduce the issue with the supplied initialValue by deleting “text, much,” then using Ctrl+Z and Ctrl+Y repeatedly; inspect the editor’s undo/redo behavior and consider the work done when repeated cycles restore and remove only the original selection.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- angular, typescript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100