import { Editor } from "https://deno.land/x/netzo@0.5.94/deps/@tiptap/react.ts";
Properties
Methods
$node(selector: string, attributes?: { [key: string]: any; }): NodePos | null
$nodes(selector: string, attributes?: { [key: string]: any; }): NodePos[] | null
$pos(pos: number): NodePos
captureTransaction(fn: Function): Transaction | null
getAttributes(nameOrType: string | NodeType | MarkType): Record<string, any>
Get attributes of the currently selected node or mark.
getText(options?: { blockSeparator?: string; textSerializers?: Record<string, TextSerializer>; }): string
Get the document as text.
isActive(name: string, attributes?: { }): boolean
Returns if the currently selected node or mark is active.
isActive(attributes: { }): boolean
registerPlugin(plugin: Plugin, handlePlugins?: (newPlugin: Plugin, plugins: Plugin[]) => Plugin[]): void
Register a ProseMirror plugin.