1
0
mirror of https://github.com/ianstormtaylor/slate.git synced 2025-08-31 10:51:44 +02:00

Update 10-normalizing.md (#3721)

Add `Transforms` to slate import so code runs when copy/pasted 😃
This commit is contained in:
Jack Hanford
2020-06-04 18:36:30 -07:00
committed by GitHub
parent ca126fbb39
commit 5ba551ad48

View File

@@ -31,7 +31,7 @@ To do this, you extend the `normalizeNode` function on the editor. The `normaliz
For example here's a plugin that ensures `paragraph` blocks only have text or inline elements as children:
```js
import { Element, Node } from 'slate'
import { Transforms, Element, Node } from 'slate'
const withParagraphs = editor => {
const { normalizeNode } = editor