iink-ts - v3.3.2
    Preparing search index...

    Class Editor

    const editor = await Editor.load(
    document.getElementById("editor"),
    "INTERACTIVEINK",
    { configuration: {...} }
    )
    Index

    Methods

    • Gets a specific editor instance by type

      Type Parameters

      Parameters

      • type: T

        The editor type to retrieve

      Returns EditorVariantMap[T] | undefined

      The editor instance of the specified type or undefined

    • Loads and initializes an editor instance

      Type Parameters

      Parameters

      • rootElement: HTMLElement

        The HTML element to mount the editor

      • type: T

        The editor variant type to load

      • options: EditorOptionsMap[T]

        Configuration options specific to the editor type

      Returns Promise<EditorVariantMap[T]>

      Promise resolving to the initialized editor instance

      This method will destroy any previously loaded editor instance before creating a new one. Use getInstance to access the currently active editor.