From f5d1f4508620eb35f14523ed75b7ed8b92cd97d6 Mon Sep 17 00:00:00 2001 From: tonyrewin Date: Tue, 18 Oct 2022 21:50:02 +0300 Subject: [PATCH] webonly-fixed-2 --- src/components/Editor/markdown.ts | 2 +- src/components/Editor/prosemirror/extension/collab.ts | 2 +- src/components/Editor/remote.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/Editor/markdown.ts b/src/components/Editor/markdown.ts index 5d501f61..b6ca7161 100644 --- a/src/components/Editor/markdown.ts +++ b/src/components/Editor/markdown.ts @@ -29,7 +29,7 @@ const findAlignment = (cell: Node): string | null => { export const markdownSerializer = new MarkdownSerializer( { ...defaultMarkdownSerializer.nodes, - image(state, node) { + image(state: any, node) { const alt = state.esc(node.attrs.alt || '') const src = node.attrs.path ?? node.attrs.src const title = node.attrs.title ? state.quote(node.attrs.title) : undefined diff --git a/src/components/Editor/prosemirror/extension/collab.ts b/src/components/Editor/prosemirror/extension/collab.ts index 2869c883..23ac71f4 100644 --- a/src/components/Editor/prosemirror/extension/collab.ts +++ b/src/components/Editor/prosemirror/extension/collab.ts @@ -1,5 +1,5 @@ import { ySyncPlugin, yCursorPlugin, yUndoPlugin } from 'y-prosemirror' -import type { YOptions } from '../../store' +import type { YOptions } from '../../store/context' import type { ProseMirrorExtension } from '../helpers' export interface EditingProps { diff --git a/src/components/Editor/remote.ts b/src/components/Editor/remote.ts index e6f8ceb0..491349ea 100644 --- a/src/components/Editor/remote.ts +++ b/src/components/Editor/remote.ts @@ -1,4 +1,4 @@ -import { EditorState } from 'prosemirror-state' +import type { EditorState } from 'prosemirror-state' import { serialize } from './markdown' export const copy = async (text: string): Promise => {