From b06b5e9151c9757bcc25727cd06a5556c20d0699 Mon Sep 17 00:00:00 2001 From: Henrik Giesel Date: Sat, 7 Aug 2021 01:59:28 +0200 Subject: [PATCH] Generalize ChangeTimer and use it in Mathjax editor --- ts/editor/MathjaxHandleEditor.svelte | 7 +++- ts/editor/change-timer.ts | 49 ++++++---------------------- ts/editor/focus-handlers.ts | 2 +- ts/editor/index.ts | 4 +-- ts/editor/input-handlers.ts | 2 +- ts/editor/saving.ts | 37 +++++++++++++++++++++ 6 files changed, 57 insertions(+), 44 deletions(-) create mode 100644 ts/editor/saving.ts diff --git a/ts/editor/MathjaxHandleEditor.svelte b/ts/editor/MathjaxHandleEditor.svelte index e1489a393..1068eaa39 100644 --- a/ts/editor/MathjaxHandleEditor.svelte +++ b/ts/editor/MathjaxHandleEditor.svelte @@ -4,6 +4,7 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html -->