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:
Diffstat (limited to 'src/components/EditorWrapper.provider.js')
-rw-r--r--src/components/EditorWrapper.provider.js13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/components/EditorWrapper.provider.js b/src/components/EditorWrapper.provider.js
new file mode 100644
index 000000000..c19ebdc0d
--- /dev/null
+++ b/src/components/EditorWrapper.provider.js
@@ -0,0 +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 },
+ },
+}