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.
Parameters
Section titled “Parameters”container
Section titled “container”Must be an element you can attach a shadow root to.
string | HTMLElement
options
Section titled “options”Options to create the editor as well as the theme to use.
onLoad?
Section titled “onLoad?”() => any
Function called when the styles are loaded and the editor is appended to the DOM.
Returns
Section titled “Returns”PrismEditor<{ theme: EditorTheme; }>
Object to interact with the editor.