/slate-find-replace

Find and replace functionality for SlateJS

Primary LanguageTypeScriptMIT LicenseMIT

Slate find and replace example

unit test badge

Example of a find and replace feature for SlateJS

Demo

https://corticoai.github.io/slate-find-replace/

Features

  • Highlights words that match the search param
  • Highlights a 'focused' word which is the one that will be replaced if a replace is called
  • Go to the next/previous word
  • Determine next and previous based on editor selection
  • Show number of matches?
  • Replace one word
  • Replace all instances of a word
  • Case sensitive option

Developing

Installing

yarn

Running

yarn start

Testing

yarn test

Deploying

Annoying right now, should automate eventually.

yarn build

Then git push your changes, including the docs folder.