Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

slate-collapse-on-escape

ianstormtaylor14.9kMIT0.8.1

A Slate plugin that simply collapses the selection on escape.

slate

readme

slate-collapse-on-escape

A Slate plugin that simply collapses the selection on escape.

View Demo ⬈

import CollapseOnEscape from 'slate-collapse-on-escape'
import { Editor } from 'slate-react'

// Add the plugin to your set of plugins...
const plugins = [
  CollapseOnEscape()
]

// And later pass it into the Slate editor...
<Editor
  ...
  plugins={plugins}
/>
Option Type Description
toEdge String The edge to collapse to, either: 'start', 'end', 'anchor' or 'focus'. Defaults to 'start'.

changelog

Changelog

This document maintains a list of changes. Until 1.0.0 is released, breaking changes will be added as minor version bumps, and smaller changes won't be accounted for since the library is moving quickly.


0.8.0 — October 10, 2018


0.7.0 — August 6, 2018


0.6.0 — October 28, 2017


0.5.0 — October 17, 2017


0.4.0 — September 5, 2017


0.3.0 — September 5, 2017

  • Nothing.

0.2.0 — July 27, 2016


0.1.0 — July 13, 2016

:tada: