Skip to content

Commit cc8e8fd

Browse files
committed
chore(cleanup): editor singleton
It is not needed anymore now that the editor is always imported from text. Previously the ViewerComponent was used directly from the viewer which resulted in the editor and thus yjs being imported in two different ways. Signed-off-by: Max <max@nextcloud.com>
1 parent 405562e commit cc8e8fd

3 files changed

Lines changed: 4 additions & 36 deletions

File tree

src/components/Editor.singleton.js

Lines changed: 0 additions & 32 deletions
This file was deleted.

src/components/ViewerComponent.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,14 @@
2727
<script>
2828
import { getSharingToken } from '@nextcloud/sharing/public'
2929
import { defineComponent } from 'vue'
30-
import getEditorInstance from './Editor.singleton.js'
30+
import Editor from './Editor.vue'
3131
import SourceView from './SourceView.vue'
3232
3333
export default defineComponent({
3434
name: 'ViewerComponent',
3535
components: {
3636
SourceView,
37-
Editor: getEditorInstance,
37+
Editor,
3838
},
3939
provide() {
4040
return {

src/views/RichWorkspace.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ import { t } from '@nextcloud/l10n'
3737
import { generateOcsUrl } from '@nextcloud/router'
3838
import { getSharingToken, isPublicShare } from '@nextcloud/sharing/public'
3939
40-
import getEditorInstance from '../components/Editor.singleton.js'
40+
import Editor from '../components/Editor.vue'
4141
import RichTextReader from '../components/RichTextReader.vue'
4242
4343
const IS_PUBLIC = isPublicShare()
@@ -58,7 +58,7 @@ export default {
5858
name: 'RichWorkspace',
5959
components: {
6060
RichTextReader,
61-
Editor: getEditorInstance,
61+
Editor,
6262
},
6363
props: {
6464
content: {

0 commit comments

Comments
 (0)