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:
5
.changeset/chilly-boats-deny.md
Normal file
5
.changeset/chilly-boats-deny.md
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
'slate-hyperscript': patch
|
||||||
|
---
|
||||||
|
|
||||||
|
Export `createText` creator from `slate-hyperscript` package
|
@@ -3,7 +3,7 @@ import {
|
|||||||
HyperscriptCreators,
|
HyperscriptCreators,
|
||||||
HyperscriptShorthands,
|
HyperscriptShorthands,
|
||||||
} from './hyperscript'
|
} from './hyperscript'
|
||||||
import { createEditor } from './creators'
|
import { createEditor, createText } from './creators'
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The default hyperscript factory that ships with Slate, without custom tags.
|
* The default hyperscript factory that ships with Slate, without custom tags.
|
||||||
@@ -15,6 +15,7 @@ export {
|
|||||||
jsx,
|
jsx,
|
||||||
createHyperscript,
|
createHyperscript,
|
||||||
createEditor,
|
createEditor,
|
||||||
|
createText,
|
||||||
HyperscriptCreators,
|
HyperscriptCreators,
|
||||||
HyperscriptShorthands,
|
HyperscriptShorthands,
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user