@vericus/slate-kit-basic-text-formatting

Plugin that provides `expected` functionality on `strike-through, underlined, bold, italicised` text on slate

Usage no npm install needed!

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

README

@Vericus / Basic Text Formatting

Plugins that provides expected functionality on strike-through, underlined, bold, italicised text on slate

Documentation

Slate plugin that provides expected functionality on strike-through, underlined, bold, italicised text such as keyboard shortcuts, helpers that can be used to trigger changes on toolbars, and optional renderer using @vericus/slate-kit-basic-text-formatting-renderer

this plugin is configurable through options on the keybindings and whether the renderer for strike-through, underlined, bold, italicised are being provided externally or not

{
  keyBindings: [
    { hotkeys: "mod+b", changeName: "toggleBold" },
    { hotkeys: "mod+i", changeName: "toggleItalic" },
    { hotkeys: "mod+u", changeName: "toggleUnderline" }
  ],
  externalRenderer: false
}

License

MIT © slate-kit