Export NodeViewRendererOptions
This commit is contained in:
@@ -4,12 +4,7 @@ import { Node as ProseMirrorNode } from 'prosemirror-model'
|
||||
import { Editor as CoreEditor } from './Editor'
|
||||
import { Node } from './Node'
|
||||
import isiOS from './utilities/isiOS'
|
||||
import { NodeViewRendererProps } from './types'
|
||||
|
||||
interface NodeViewRendererOptions {
|
||||
stopEvent: ((event: Event) => boolean) | null,
|
||||
update: ((node: ProseMirrorNode, decorations: Decoration[]) => boolean) | null,
|
||||
}
|
||||
import { NodeViewRendererProps, NodeViewRendererOptions } from './types'
|
||||
|
||||
export class NodeView<Component, Editor extends CoreEditor = CoreEditor> implements ProseMirrorNodeView {
|
||||
|
||||
|
||||
@@ -145,6 +145,11 @@ export type NodeViewProps = {
|
||||
deleteNode: () => void,
|
||||
}
|
||||
|
||||
export interface NodeViewRendererOptions {
|
||||
stopEvent: ((event: Event) => boolean) | null,
|
||||
update: ((node: ProseMirrorNode, decorations: Decoration[]) => boolean) | null,
|
||||
}
|
||||
|
||||
export type NodeViewRendererProps = {
|
||||
editor: Editor,
|
||||
node: ProseMirrorNode,
|
||||
|
||||
Reference in New Issue
Block a user