Skip to content

PluginValue

Unofficial

Import:

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

Signature:

export interface PluginValue

Methods

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