mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-08-31 10:51:44 +02:00
Temporarily revert Android commits in order to create a release of Slate focused solely on Android (#4256)
* Revert "Add DefaultEditable and AndroidEditable to exports (#4255)" This reverts commit5298e51f6e
. * Revert "Feature/android keyboard support (#4200)" This reverts commite03ce7c561
.
This commit is contained in:
@@ -1,13 +1,13 @@
|
||||
import React, { useMemo, useState } from 'react'
|
||||
import React, { useState, useMemo } from 'react'
|
||||
import imageExtensions from 'image-extensions'
|
||||
import isUrl from 'is-url'
|
||||
import { Transforms, createEditor, Descendant } from 'slate'
|
||||
import {
|
||||
Editable,
|
||||
Slate,
|
||||
useFocused,
|
||||
useSelected,
|
||||
Editable,
|
||||
useSlateStatic,
|
||||
useSelected,
|
||||
useFocused,
|
||||
withReact,
|
||||
} from 'slate-react'
|
||||
import { withHistory } from 'slate-history'
|
||||
|
@@ -1,12 +1,12 @@
|
||||
import React, { useCallback, useMemo, useState } from 'react'
|
||||
import isHotkey from 'is-hotkey'
|
||||
import { Editable, Slate, useSlate, withReact } from 'slate-react'
|
||||
import { Editable, withReact, useSlate, Slate } from 'slate-react'
|
||||
import {
|
||||
Editor,
|
||||
Transforms,
|
||||
createEditor,
|
||||
Descendant,
|
||||
Editor,
|
||||
Element as SlateElement,
|
||||
Transforms,
|
||||
} from 'slate'
|
||||
import { withHistory } from 'slate-history'
|
||||
|
||||
@@ -28,7 +28,7 @@ const RichTextExample = () => {
|
||||
const editor = useMemo(() => withHistory(withReact(createEditor())), [])
|
||||
|
||||
return (
|
||||
<Slate editor={editor} value={value} onChange={setValue}>
|
||||
<Slate editor={editor} value={value} onChange={value => setValue(value)}>
|
||||
<Toolbar>
|
||||
<MarkButton format="bold" icon="format_bold" />
|
||||
<MarkButton format="italic" icon="format_italic" />
|
||||
|
Reference in New Issue
Block a user