Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/text.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVinicius Reis <vinicius.reis@nextcloud.com>2022-04-26 17:21:39 +0300
committerVinicius Reis <vinicius.reis@nextcloud.com>2022-04-26 21:21:13 +0300
commita63535a9369a00a6c4907c1a57788997dabafdc3 (patch)
tree5c26bf0fda525ee21b86af00a65c55dd677c7cf5 /src/components/EditorWrapper.provider.js
parent3b1b12299b7863cbac42166213811d7aab07125f (diff)
⚡️ (#2323): inject SyncService instance
Vinicius Reis <vinicius.reis@nextcloud.com>
Diffstat (limited to 'src/components/EditorWrapper.provider.js')
-rw-r--r--src/components/EditorWrapper.provider.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/components/EditorWrapper.provider.js b/src/components/EditorWrapper.provider.js
index e711b5352..c19ebdc0d 100644
--- a/src/components/EditorWrapper.provider.js
+++ b/src/components/EditorWrapper.provider.js
@@ -1,6 +1,13 @@
export const EDITOR = Symbol('tiptap:editor')
+export const SYNC_SERVICE = Symbol('sync:service')
+
export const useEditorMixin = {
inject: {
$editor: { from: EDITOR, default: null },
},
}
+export const useSyncServiceMixin = {
+ inject: {
+ $syncService: { from: SYNC_SERVICE, default: null },
+ },
+}