@liquid-js/underflow
    Preparing search index...

    Class Editor

    EditorCore with the default UI: the toolbar, the mode switch and the popups.

    Hierarchy (View Summary)

    Index
    eventEmitter: Emitter
    options: Required<EditorOptions>
    • Runs a command in the current mode.

      Parameters

      • name: string
      • Optionalpayload: Record<string, any>

      Returns void

    • Moves the cursor to the start of a line (1-based); in WYSIWYG, each text block, table row and code line is a line.

      Parameters

      • line: number
      • focus: boolean = true

      Returns void

    • focus applies when the cursor moves to the end.

      Parameters

      • markdown: string = ''
      • cursorToEnd: boolean = true
      • focus: boolean = true

      Returns void

    • Sets the content from HTML, converted to markdown; focus applies when the cursor moves to the end.

      Parameters

      • html: string = ''
      • cursorToEnd: boolean = true
      • focus: boolean = true

      Returns void

    • Parameters

      • itemName: string

      Returns void

    • Registers the UI texts of a language under its codes.

      Parameters

      • code: string | string[]
      • data: Record<string, string>

      Returns void