Trevixal API
    Preparing search index...

    Interface SourceMode

    interface SourceMode {
        element: HTMLElement | null;
        format: SourceFormat;
        isActive: boolean;
        destroy(): void;
        enter(): void;
        exit(apply?: boolean): void;
        setFormat(format: SourceFormat): void;
        toggle(): void;
    }
    Index
    element: HTMLElement | null

    The textarea while active, for hosts that want to style or read it.

    format: SourceFormat
    isActive: boolean
    • Returns void

    • Swap the rich view for the source.

      Returns void

    • Leave source mode; apply (default true) parses the source back in.

      Parameters

      • Optionalapply: boolean

      Returns void

    • Returns void