Function: codeBlockPlugin

codeBlockPlugin(params?): RealmPlugin

A plugin that adds support for code blocks and custom code block editors.

Parameters

NameTypeDescription
params?Object-
params.codeBlockEditorDescriptors?CodeBlockEditorDescriptor[]Pass an array of CodeBlockEditorDescriptor to register custom code block editors.
params.defaultCodeBlockLanguage?stringThe default language to use when creating a new code block if no language is passed.

Returns

RealmPlugin