mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-08-17 04:34:00 +02:00
Export createText
from slate-hyperscript
(#4932)
* Update index.ts * Fix code style * Add changeset
This commit is contained in:
@@ -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,
|
||||
}
|
||||
|
Reference in New Issue
Block a user