This commit is contained in:
23
node_modules/slate-soft-break/Readme.md
generated
vendored
Normal file
23
node_modules/slate-soft-break/Readme.md
generated
vendored
Normal file
@@ -0,0 +1,23 @@
|
||||
### `slate-soft-break`
|
||||
|
||||
A Slate plugin to add soft breaks on <kbd>enter</kbd>.
|
||||
|
||||
[View Demo ⬈](https://ianstormtaylor.github.io/slate-plugins/#/slate-soft-break)
|
||||
|
||||
```js
|
||||
import SoftBreak from 'slate-soft-break'
|
||||
import { Editor } from 'slate-react'
|
||||
|
||||
const plugins = [
|
||||
SoftBreak()
|
||||
]
|
||||
|
||||
<Editor
|
||||
...
|
||||
plugins={plugins}
|
||||
/>
|
||||
```
|
||||
|
||||
| Option | Type | Description |
|
||||
| ----------- | --------- | ------------------------------------------------------- |
|
||||
| **`shift`** | `Boolean` | Require the <kbd>shift</kbd> key to be pressed as well. |
|
||||
Reference in New Issue
Block a user