aboutsummaryrefslogtreecommitdiffstats
path: root/subprojects/frontend/src/editor/EditorStore.ts
diff options
context:
space:
mode:
Diffstat (limited to 'subprojects/frontend/src/editor/EditorStore.ts')
-rw-r--r--subprojects/frontend/src/editor/EditorStore.ts6
1 files changed, 6 insertions, 0 deletions
diff --git a/subprojects/frontend/src/editor/EditorStore.ts b/subprojects/frontend/src/editor/EditorStore.ts
index b98f085e..c79f6ec1 100644
--- a/subprojects/frontend/src/editor/EditorStore.ts
+++ b/subprojects/frontend/src/editor/EditorStore.ts
@@ -58,6 +58,8 @@ export default class EditorStore {
58 58
59 disposed = false; 59 disposed = false;
60 60
61 semantics: unknown = {};
62
61 constructor(initialValue: string, pwaStore: PWAStore) { 63 constructor(initialValue: string, pwaStore: PWAStore) {
62 this.id = nanoid(); 64 this.id = nanoid();
63 this.state = createEditorState(initialValue, this); 65 this.state = createEditorState(initialValue, this);
@@ -282,6 +284,10 @@ export default class EditorStore {
282 return true; 284 return true;
283 } 285 }
284 286
287 setSemantics(semantics: unknown) {
288 this.semantics = semantics;
289 }
290
285 dispose(): void { 291 dispose(): void {
286 this.client?.dispose(); 292 this.client?.dispose();
287 this.disposed = true; 293 this.disposed = true;