Optional
container: null | string | ParentNodeElement to append the editor to or a selector.
This can also be a ShadowRoot
or DocumentFragment
for example.
If omitted, you must manually append the scrollContainer
to the DOM.
Optional
options: Partial<EditorOptions>Options the editor is initialized with.
If omitted, the editor won't function until you call setOptions
.
Rest
...extensions: EditorExtension[]Extensions added before the first render. You can still add extensions later.
Object to interact with the created editor.
Generated using TypeDoc
Creates a code editor using the specified container and options.