mountEditorsUnder
mountEditorsUnder<
T>(root,getExtensions?):PrismEditor<T>[]
Defined in: client/index.ts:26
Mounts all editors rendered by renderEditor under the specified root. Editors are mounted in document order, and editors that have already been mounted are skipped.
Type Parameters
Section titled “Type Parameters”T extends object = { }
Parameters
Section titled “Parameters”Root element to search for editors under.
Element | Document
getExtensions?
Section titled “getExtensions?”(options) => EditorExtension<T>[] | null | undefined
Function used to get the extensions that should be added to each editor. If the editors were created with extra options, these will be parsed from JSON and passed to this function together with all other editor options. This is very useful if you want to configure different extensions for different editors.
Returns
Section titled “Returns”PrismEditor<T>[]
Array of the mounted editors. These editors are in document order.