Orca Note Plugin API Documentation
    Preparing search index...

    Type Alias EditorCommandFn

    EditorCommandFn: (
        editor: EditorArg,
        ...args: any[],
    ) =>
        | { ret?: any; undoArgs: any }
        | null
        | Promise<{ ret?: any; undoArgs?: any } | null>

    Editor command function type that defines functions that can be executed in the editor context. These commands support undo/redo functionality by returning undo arguments.

    Type declaration

      • (
            editor: EditorArg,
            ...args: any[],
        ):
            | { ret?: any; undoArgs: any }
            | null
            | Promise<{ ret?: any; undoArgs?: any } | null>
      • Parameters

        Returns
            | { ret?: any; undoArgs: any }
            | null
            | Promise<{ ret?: any; undoArgs?: any } | null>