webonly-fixed-2
This commit is contained in:
parent
24d5acabef
commit
f5d1f45086
|
@ -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
|
||||||
|
|
|
@ -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 {
|
||||||
|
|
|
@ -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> => {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user