Skip to content

Type Editor


Type Editor / @type-editor/search / search-plugin / searchPlugin

Function: searchPlugin()

ts
function searchPlugin(options?): Plugin_2;

Defined in: search-plugin.ts:34

Creates a search plugin that stores a current search query and searched range, and highlights matches of the query.

Parameters

ParameterTypeDescription
optionsSearchPluginOptionsConfiguration options for the search plugin

Returns

Plugin_2

A ProseMirror plugin that manages search state and match highlighting