1
0
mirror of https://github.com/ianstormtaylor/slate.git synced 2025-08-22 23:12:52 +02:00

Adds Transforms import to forced-layout (#3503)

The forced layout demo included Editor, but not Transforms, and would crash when it needed to enforce the layout.
This commit is contained in:
Adam Sanderson
2020-02-20 16:20:36 -08:00
committed by GitHub
parent eb181f3279
commit e9e1eb2524

View File

@@ -1,6 +1,6 @@
import React, { useState, useCallback, useMemo } from 'react'
import { Slate, Editable, withReact } from 'slate-react'
import { Editor, createEditor, Node } from 'slate'
import { Transforms, createEditor, Node } from 'slate'
import { withHistory } from 'slate-history'
const withLayout = editor => {