Skip to content
Branch: master
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
src
test
.npmignore fix .npmignore Sep 13, 2017
Changelog.md fix changelogs Oct 10, 2018
Readme.md
package.json

Readme.md

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'.
You can’t perform that action at this time.