askonomm/blocko

Can't undo / redo in paragraph block

askonomm opened this issue · 1 comments

Can't undo / redo in paragraph block

I suppose this is technically not a bug, but it is something that is missing in the contentEditable and will require some sort of a history state in order to pull off. For example we'd detect if the user typed undo (cmd+z) and then go back in history by 1 position. If the user typed redo (cmd+y) we go forward in history by 1 position. To keep it from growing out of control, could limit the history to X items. Could also not, will have to see what the performance of it is.