(editor: CustomEditor)
| 168 | } |
| 169 | |
| 170 | export const clearEditorHistory = (editor: CustomEditor) => { |
| 171 | // slate-history exposes `history` publicly, but does not provide a clear API. |
| 172 | editor.history = { redos: [], undos: [] }; |
| 173 | } |
| 174 | |
| 175 | // @see: https://stackoverflow.com/a/74102147 |
| 176 | export const resetEditor = (editor: CustomEditor) => { |
no outgoing calls
no test coverage detected