ViewPlugin
A view plugin contributes behaviour and/or decorations to the editor view.
To add a plugin to the editor, call asExtension and include the result in the state's extension configuration.
val myPlugin = ViewPlugin.define(create = { session -> MyPluginValue(session) })
EditorState.create(EditorStateConfig(extensions = myPlugin.asExtension()))Content copied to clipboard
Functions
Link copied to clipboard
Returns an Extension that, when included in an EditorState's configuration, registers this plugin with the EditorSession.