New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@wikifactory/slate-trailing-block

Package Overview
Dependencies
Maintainers
2
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@wikifactory/slate-trailing-block

Slate plugin to ensure a trailing block.

  • 0.6.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2.5K
increased by144.51%
Maintainers
2
Weekly downloads
 
Created
Source

@wikifactory/slate-trailing-block

NPM version

Slate plugin to ensure a trailing block.

Install

npm install @wikifactory/slate-trailing-block

Simple Usage

import TrailingBlock from 'slate-trailing-block'

const plugins = [
  TrailingBlock({ type: 'paragraph' })
]
Arguments

This plugin accepts options to redefine the following block types:

  • [type: String] — type for the trailing block
  • [match: Function] — function that checks against the last node

Utilities

slate-trailing-block exports utilities and changes:

changes.focusAtEnd

plugin.changes.focusAtEnd(editor: Editor) => Editor

Focus at the end of the last block.

Keywords

FAQs

Package last updated on 20 Dec 2018

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc