webonly-fixed-2

This commit is contained in:
tonyrewin 2022-10-18 21:50:02 +03:00
parent 24d5acabef
commit f5d1f45086
3 changed files with 3 additions and 3 deletions

View File

@ -29,7 +29,7 @@ const findAlignment = (cell: Node): string | null => {
export const markdownSerializer = new MarkdownSerializer( export const markdownSerializer = new MarkdownSerializer(
{ {
...defaultMarkdownSerializer.nodes, ...defaultMarkdownSerializer.nodes,
image(state, node) { image(state: any, node) {
const alt = state.esc(node.attrs.alt || '') const alt = state.esc(node.attrs.alt || '')
const src = node.attrs.path ?? node.attrs.src const src = node.attrs.path ?? node.attrs.src
const title = node.attrs.title ? state.quote(node.attrs.title) : undefined const title = node.attrs.title ? state.quote(node.attrs.title) : undefined

View File

@ -1,5 +1,5 @@
import { ySyncPlugin, yCursorPlugin, yUndoPlugin } from 'y-prosemirror' import { ySyncPlugin, yCursorPlugin, yUndoPlugin } from 'y-prosemirror'
import type { YOptions } from '../../store' import type { YOptions } from '../../store/context'
import type { ProseMirrorExtension } from '../helpers' import type { ProseMirrorExtension } from '../helpers'
export interface EditingProps { export interface EditingProps {

View File

@ -1,4 +1,4 @@
import { EditorState } from 'prosemirror-state' import type { EditorState } from 'prosemirror-state'
import { serialize } from './markdown' import { serialize } from './markdown'
export const copy = async (text: string): Promise<void> => { export const copy = async (text: string): Promise<void> => {