1.0.5 • Published 6 years ago

plugin-slate-lists v1.0.5

Weekly downloads
2
License
ISC
Repository
github
Last release
6 years ago

slate-lists-plugin

A plugin for Slate for handling keyboard events when in a list.

To use

import ListsPlugin from 'slate-lists-plugin';

const plugins = [
  ListsPlugin(options)
]

Arguments

The list plugin takes an options object.

Keys

  • Enter will insert a new list item
  • Enter + shift will allow for multi-line list items
  • Tab will nest a list item
  • Tab + shift will un nest a list item
  • Backspace will unwrap the list item if at the beginning of the item