UNPKG

cm-search-replace

Version:

Implements the search and replace function of CodeMirror

24 lines (15 loc) 548 B
# cm-search-replace ## Description Implements the search and replace function of CodeMirror cm-search-replace is modified from [codemirror-search-replace](https://github.com/zhuhs/codemirror-search-replace) Only the component mount location is changed ## Usage ```jsx import "cm-search-replace/src/search.js" import "codemirror/addon/search/searchcursor.js"; import "codemirror/addon/scroll/annotatescrollbar.js"; import "codemirror/addon/search/matchesonscrollbar.js"; ``` Use `Ctrl-F / Cmd-F` to trigger search and replace ## License MIT