artalk
    Preparing search index...

    Interface Editor

    interface Editor {
        $el: HTMLElement;
        focus(): void;
        getContentFinal(): string;
        getContentMarked(): string;
        getContentRaw(): string;
        getEl(): HTMLElement;
        getHeaderInputEls(): Record<string, HTMLInputElement>;
        getOptions(): EditorOptions;
        getPlugins(): PluginManager | undefined;
        getPlugs(): 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;
        setReply(
            commentData: CommentData,
            $comment: HTMLElement,
            scroll?: boolean,
        ): void;
        setReplyComment(
            commentData: CommentData,
            $comment: HTMLElement,
            scroll?: boolean,
        ): void;
        showLoading(): void;
        showNotify(msg: string, type: NotifyLevel): void;
        submit(): void;
    }
    Index
    $el: HTMLElement

    Get the editor element

    Use getEl() instead.

    • Get the final content

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

      Returns string

    • Get the HTML format content which is rendered by marked (a markdown parser)

      Returns string

    • Get the header input elements

      Returns Record<string, HTMLInputElement>

    • Get plugin manager

      Returns PluginManager | undefined

      Use getPlugins() instead.

    • Start replying to a comment

      Parameters

      • commentData: CommentData
      • $comment: HTMLElement
      • Optionalscroll: boolean

      Returns void

      Use setReplyComment() instead.

    • Start replying a comment

      Parameters

      • commentData: CommentData
      • $comment: HTMLElement
      • Optionalscroll: boolean

      Returns void