Skip to content

PluginValue

Unofficial

Import:

import type { PluginValue } from '@codemirror/view';

Signature:

export interface PluginValue

Methods

Method Returns Description
destroy() void Called when the plugin is no longer going to be used. Should revert any changes the plugin made to the DOM.
docViewUpdate(view) void Called when the document view is updated (due to content, decoration, or viewport changes).
update(update) void Notifies the plugin of an update that happened in the view.