Skip to content

CorticoAI/slate-find-replace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Find and replace functionality for SlateJS

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published