@singapor/find
v0.1.1
Published
Find and replace plugin for `@singapor/core`.
Downloads
13
Readme
@singapor/find
Find and replace plugin for @singapor/core.
Install
npm install @singapor/core @singapor/findUsage
import { Editor } from '@singapor/core/editor'
import { createEditorFindPlugin } from '@singapor/find'
import '@singapor/core/style.css'
import '@singapor/find/style.css'
const editor = new Editor(document.querySelector('#editor')!, {
plugins: [createEditorFindPlugin()],
})Exports
createEditorFindPluginregisters find, replace, and match-selection commands.createEditorFindContributionProvidersexposes the find widget and capability providers.EDITOR_FIND_FEATUREandEDITOR_FIND_FEATURE_IDexpose the find feature capability token.
