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:
@@ -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 => {
|
||||
|
Reference in New Issue
Block a user