draft-js-highlight-plugin
A simple draft-js plugin to highlight text, created as part of writing a tutorial on how to get started with draft-js-plugins. This plugin is compatible with draft-js-plugins.
Usage
createHighlightPlugin(style?: Object)
- style is a plain javascript object containing css rules that define the highlight style.
Default style:
background: 'blue' padding: '0 .3em' color: '#fff'
Example
;;; const highlightPlugin = ; { superprops; thisstate = editorState: EditorState } { this