Plugin โ€บ registerEditorExtension

Plugin.registerEditorExtension() method

Registers a CodeMirror 6 extension. To reconfigure cm6 extensions for a plugin on the fly, an array should be passed in, and modified dynamically. Once this array is modified, calling Workspace.updateOptions() will apply the changes.

Signature:

registerEditorExtension(extension: Extension): void;

Parameters

ParameterTypeDescription
extensionExtensionmust be a CodeMirror 6 Extension, or an array of Extensions.

Returns:

void