Skip to content

minimalEditor

minimalEditor(container, options, onLoad?): PrismEditor<{ theme: EditorTheme; }>

Defined in: setups/index.ts:35

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

Must be an element you can attach a shadow root to.

string | HTMLElement

SetupOptions

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

() => any

Function called when the styles are loaded and the editor is appended to the DOM.

PrismEditor<{ theme: EditorTheme; }>

Object to interact with the editor.