@vericus/slate-kit-highlight-text

plugin that provide a way to color/highlight a group of text on slate

Usage no npm install needed!

<script type="module">
  import vericusSlateKitHighlightText from 'https://cdn.skypack.dev/@vericus/slate-kit-highlight-text';
</script>

README

@Vericus / Highlight Text

plugin that provide a way to color/highlight a group of text on slate

Documentation

Slate plugin that provides a way to color/highlight a group of text on slate. The rendering of color/highlight is provided using configurable optional renderer @vericus/slate-kit-highlight-text-renderer

{
    type: "textBackground",
    alpha: 0.54,
    data: "backgroundColor",
    defaultColor: "transparent",
    styles: ["backgroundColor"],
    externalRenderer: false
}

License

MIT © slate-kit