• Adds an editor inside a shadow root to the given element and asynchronously loads the styles.

    Parameters

    • container: string | HTMLElement

      Must be an element you can attach a shadow root to

    • options: SetupOptions

      Options to create the editor as well as the theme to use.

    • Optional readyCallback: (() => any)

      Function called when the styles are loaded.

        • (): any
        • Returns any

    Returns PrismEditor

    Object to interact with the editor.

Generated using TypeDoc