CallioText API Reference - v0.0.22
    Preparing search index...

    Interface EditorComponentProps

    interface EditorComponentProps {
        editorcore: EditorCore;
        init_rootchildren?: Descendant[] & NonLeafNode[];
        init_rootproperty?: Omit<AbstractNode, "children">;
        onFocusChange?: (editor?: EditorComponent) => void;
        onKeyDown?: (e: KeyboardEvent<HTMLDivElement>) => void;
        onKeyUp?: (e: KeyboardEvent<HTMLDivElement>) => void;
        onUpdate?: (v: any) => void;
        plugin?: EditorPlugin;
    }
    Index
    editorcore: EditorCore
    init_rootchildren?: Descendant[] & NonLeafNode[]
    init_rootproperty?: Omit<AbstractNode, "children">
    onFocusChange?: (editor?: EditorComponent) => void

    改变光标位置的回调。

    onKeyDown?: (e: KeyboardEvent<HTMLDivElement>) => void

    按键按下的回调。

    onKeyUp?: (e: KeyboardEvent<HTMLDivElement>) => void

    按键弹起的回调。

    onUpdate?: (v: any) => void

    节点树更新时的回调。

    plugin?: EditorPlugin