@artibox/slate-soft-break
Slate sort break.
Installation
npm install @artibox/slate-soft-break --save
or
$ yarn add @artibox/slate-soft-break
Usage
Editor
import React from 'react';
import { createArtiboxEditor } from '@artibox/slate-editor';
import { SoftBreak } from '@artibox/slate-soft-break';
const plugins = [SoftBreak.forPlugin()];
const Editor = createArtiboxEditor({
plugins
});
export default Editor;