Function: codeBlockPlugin()
codeBlockPlugin(
params
?):RealmPlugin
A plugin that adds support for code blocks and custom code block editors.
Parameters
Parameter | Type | Description |
---|---|---|
params ? | object | - |
params.codeBlockEditorDescriptors ? | CodeBlockEditorDescriptor [] | Pass an array of CodeBlockEditorDescriptor to register custom code block editors. |
params.defaultCodeBlockLanguage ? | string | The default language to use when creating a new code block if no language is passed. |