artalk
    Preparing search index...

    Interface Editor

    interface Editor {
        focus(): void;
        getContentFinal(): string;
        getContentMarked(): string;
        getContentRaw(): string;
        getEl(): HTMLElement;
        getHeaderInputEls(): Record<string, HTMLInputElement>;
        getOptions(): EditorOptions;
        getPlugins(): PluginManager | undefined;
        getState(): EditorState;
        getUI(): EditorUI;
        hideLoading(): void;
        insertContent(val: string): void;
        reset(): void;
        resetState(): void;
        setContent(val: string): void;
        setEditComment(commentData: CommentData, $comment: HTMLElement): void;
        setPlugins(plugins: PluginManager): void;
        setReplyComment(
            commentData: CommentData,
            $comment: HTMLElement,
            scroll?: boolean,
        ): void;
        showLoading(): void;
        showNotify(msg: string, type: NotifyLevel): void;
        submit(): void;
    }
    Index

    Methods

    • Get the final content

      This function returns the raw content or the content transformed through a plugin hook.

      Returns string

    • Get the header input elements

      Returns Record<string, HTMLInputElement>