Function: codeMirrorPlugin()

codeMirrorPlugin(params?): RealmPlugin

A plugin that adds lets users edit code blocks with CodeMirror.

Parameters

ParameterTypeDescription
params?object-
params.autoLoadLanguageSupport?booleanWhether or not to try to dynamically load the code block language support. Disable if you want to manually pass the supported languages.
params.codeBlockLanguages?Record<string, string>-
params.codeMirrorExtensions?Extension[]Optional, additional CodeMirror extensions to load in the diff/source mode.

Returns

RealmPlugin