class Editor
extends CoreEditor
Re-export
import { Editor } from "https://deno.land/x/netzo@0.5.109/deps/@tiptap/react.ts";
Constructors
new
Editor(options?: Partial<EditorOptions>)Properties
readonly
$doc: NodePosextensionManager: ExtensionManager
options: EditorOptions
schema: Schema
view: EditorView
Methods
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.