1
0
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 commit 5298e51f6e.

* Revert "Feature/android keyboard support (#4200)"

This reverts commit e03ce7c561.
This commit is contained in:
Claudéric Demers
2021-05-12 21:24:57 -04:00
committed by GitHub
parent 5298e51f6e
commit 4f50211984
15 changed files with 43 additions and 1198 deletions

View File

@@ -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'

View File

@@ -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" />