0.0.7 • Published 6 years ago

slate-delete-one-line v0.0.7

Weekly downloads
7
License
MIT
Repository
github
Last release
6 years ago

slate-delete-one-line

NPM version

Delete a visual line rather than a block line.

Fix #1623

Usage

  1. install with yarn install slate-delete-one-line
  2. use this package as a plugin to hack onKeyDown
import LineDelete from 'slate-delete-one-line'
export default LineDelete()

Arguments

import LineDelete from 'slate-delete-one-line'
const plugin = LineDelete({forward: true, backward: true})
  1. forward: (default: true) whether or not hack deleteForwardLine
  2. backward: (default: true) whether or not hack deleteBackwardLine

Notice:

By May-2018, there is a bug in slate core deleteForwardLine. This package override the default deleteForwardLine as well.

0.0.7

6 years ago

0.0.6

6 years ago

0.0.5

6 years ago

0.0.4

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago