import { Text } from 'slate'
A text node in a Slate Document
. Text nodes are always the bottom-most leaves in the document, just like in the DOM.
Text({
characters: Immutable.List<Character>,
key: String
})
A list of Characters
with associated Marks
that make up the text node's content.
String
A unique identifier for the node.
String
An immutable string value of 'text'
for easily separating this node from Inline
or Block
nodes.
Number
The length of all of the characters in the text node.
String
A concatenated string of all of the characters in the text node.
Text.create(properties: Object) => Text
Create a text from a plain Javascript object of properties
.