Closed caffodian closed 7 years ago
Possibly need to be firing the http://docs.ckeditor.com/#!/api/CKEDITOR.editor-event-updateSnapshot at the end of our dropdown ops
Better yet, just lockSnapshot & unlockSnapshot everywhere
The "classic" style combo fired snapshot simply saves a snapshot before and after you apply a style.
Our replacement for it doesn't do any such thing, which explains the random undo behaviour (if you accidentally do something else, it adds to undo)
The setting numbering style is a bit worse, something in between has a side effect of creating a snapshot, so we do need to actually lock it
This is surprisingly super annoying, managing snapshot side effects is horrible.
We have an autosave plugin that hooks into CKEditor, however, it doesn't appear to detect dirtiness when headings are applied or unapplied