@wikifactory/slate-edit-blockquote
Advanced tools
Weekly downloads
Changelog
[0.7.1] - 2018-12-20
Readme
A Slate plugin to handle keyboard events in blockquotes. Blockquotes can contain blocks.
npm install @wikifactory/slate-edit-blockquote
Natural keybindings:
import EditBlockquote from '@wikifactory/slate-edit-blockquote'
const plugins = [
EditBlockquote()
]
This plugin accepts options to redefine the following block types:
[type: String]
— type for blockquotes[typeDefault: String]
— type for default block in blockquote.@wikifactory/slate-edit-blockquote
exports utilities and changes:
utils.isSelectionInBlockquote
plugin.utils.isSelectionInBlockquote(value: Value) => Boolean
Return true if selection is inside a blockquote (and it can be unwrap).
changes.wrapInBlockquote
plugin.changes.wrapInBlockquote(editor: Editor) => Editor
Wrap current block in a new blockquote.
changes.unwrapBlockquote
plugin.changes.unwrapBlockquote(editor: Editor) => Editor
Unwrap from current blockquote if any.
FAQs
A Slate plugin to handle keyboard events in blockquotes.
The npm package @wikifactory/slate-edit-blockquote receives a total of 2,221 weekly downloads. As such, @wikifactory/slate-edit-blockquote popularity was classified as popular.
We found that @wikifactory/slate-edit-blockquote demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket installs a Github app to automatically flag issues on every pull request and report the health of your dependencies. Find out what is inside your node modules and prevent malicious activity before you update the dependencies.