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

Export createText from slate-hyperscript (#4932)

* Update index.ts

* Fix code style

* Add changeset
This commit is contained in:
Ivan Voskoboinyk
2022-04-11 16:10:12 +03:00
committed by GitHub
parent bb4f1934c9
commit 1ff6e69093
2 changed files with 7 additions and 1 deletions

View File

@@ -0,0 +1,5 @@
---
'slate-hyperscript': patch
---
Export `createText` creator from `slate-hyperscript` package

View File

@@ -3,7 +3,7 @@ import {
HyperscriptCreators,
HyperscriptShorthands,
} from './hyperscript'
import { createEditor } from './creators'
import { createEditor, createText } from './creators'
/**
* The default hyperscript factory that ships with Slate, without custom tags.
@@ -15,6 +15,7 @@ export {
jsx,
createHyperscript,
createEditor,
createText,
HyperscriptCreators,
HyperscriptShorthands,
}