Socket
Socket
Sign inDemoInstall

slate-soft-break

Package Overview
Dependencies
4
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    slate-soft-break

A Slate plugin to add soft breaks on return.


Version published
Weekly downloads
14K
decreased by-1.97%
Maintainers
1
Install size
6.24 kB
Created
Weekly downloads
 

Readme

Source

slate-soft-break

A Slate plugin to add soft breaks on enter.

View Demo ⬈

import SoftBreak from 'slate-soft-break'
import { Editor } from 'slate-react'

// Add the plugin to your set of plugins...
const plugins = [
  SoftBreak({
    onlyIn: ['code']
  })
]

// And later pass it into the Slate editor...
<Editor
  ...
  plugins={plugins}
/>
OptionTypeDescription
shiftBooleanRequire the shift key to be pressed as well.
ignoreInArrayAn array of block types to not soft break inside.
onlyInArrayAn array of block types to only soft break inside.

Keywords

FAQs

Last updated on 16 Oct 2017

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc