Expand all

CodeMirrorSearch

Custom search panel for CodeMirror using CSS-only Codex components.

Extends

Constructor

new CodeMirrorSearch(cmKeymap) #

Instantiate a new CodeMirror search panel.

Parameters:

Name Type Description
cmKeymap CodeMirrorKeymap

Reference to the keymap instance.

Source:

Properties

extension :Extension #

Get the panel and any associated keymaps as an Extension. For use only during CodeMirror initialization.

Type:

Overrides:
Source:
Get the panel and any associated keymaps as an Extension.

panel :Panel #

Get the Panel object.

Type:

Overrides:
Source:
Get the Panel object.

searchInputWrapper :HTMLDivElement #

searchPanelKeymap :Object.<CodeMirrorKeyBinding> #

Contains only keybindings bound to the search panel.

Type:

Source:
Contains only keybindings bound to the search panel.

searchQuery :SearchQuery #

Methods

closePanel(view) → {boolean} #

Close the search panel.

Parameters:

Name Type Description
view EditorView
Source:

Returns:

Type
boolean
Close the search panel.

getButton() #

getTextInput() #

getToggleButton() #

openPanel(view) → {boolean} #

Open the search panel.

Parameters:

Name Type Description
view EditorView
Source:

Returns:

Type
boolean
Open the search panel.