mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-08-09 08:46:35 +02:00
update doc's text node key ranges -> leaves (#1343)
This commit is contained in:
@@ -108,7 +108,7 @@ The object should be one of:
|
|||||||
|
|
||||||
{
|
{
|
||||||
kind: 'text',
|
kind: 'text',
|
||||||
ranges: Array
|
leaves: Array
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@@ -41,7 +41,7 @@ const initialValue = Value.fromJSON({
|
|||||||
nodes: [
|
nodes: [
|
||||||
{
|
{
|
||||||
kind: 'text',
|
kind: 'text',
|
||||||
ranges: [
|
leaves: [
|
||||||
{
|
{
|
||||||
text: 'A line of text in a paragraph.'
|
text: 'A line of text in a paragraph.'
|
||||||
}
|
}
|
||||||
@@ -71,7 +71,7 @@ const initialValue = Value.fromJSON({
|
|||||||
nodes: [
|
nodes: [
|
||||||
{
|
{
|
||||||
kind: 'text',
|
kind: 'text',
|
||||||
ranges: [
|
leaves: [
|
||||||
{
|
{
|
||||||
text: 'A line of text in a paragraph.'
|
text: 'A line of text in a paragraph.'
|
||||||
}
|
}
|
||||||
|
@@ -24,7 +24,7 @@ const initialValue = Value.fromJSON({
|
|||||||
nodes: [
|
nodes: [
|
||||||
{
|
{
|
||||||
kind: 'text',
|
kind: 'text',
|
||||||
ranges: [
|
leaves: [
|
||||||
{
|
{
|
||||||
text: 'A line of text in a paragraph.'
|
text: 'A line of text in a paragraph.'
|
||||||
}
|
}
|
||||||
@@ -74,7 +74,7 @@ const initialValue = Value.fromJSON({
|
|||||||
nodes: [
|
nodes: [
|
||||||
{
|
{
|
||||||
kind: 'text',
|
kind: 'text',
|
||||||
ranges: [
|
leaves: [
|
||||||
{
|
{
|
||||||
text: 'A line of text in a paragraph.'
|
text: 'A line of text in a paragraph.'
|
||||||
}
|
}
|
||||||
@@ -128,7 +128,7 @@ const initialValue = Value.fromJSON(existingValue || {
|
|||||||
nodes: [
|
nodes: [
|
||||||
{
|
{
|
||||||
kind: 'text',
|
kind: 'text',
|
||||||
ranges: [
|
leaves: [
|
||||||
{
|
{
|
||||||
text: 'A line of text in a paragraph.'
|
text: 'A line of text in a paragraph.'
|
||||||
}
|
}
|
||||||
@@ -180,7 +180,7 @@ const initialValue = Value.fromJSON(existingValue || {
|
|||||||
nodes: [
|
nodes: [
|
||||||
{
|
{
|
||||||
kind: 'text',
|
kind: 'text',
|
||||||
ranges: [
|
leaves: [
|
||||||
{
|
{
|
||||||
text: 'A line of text in a paragraph.'
|
text: 'A line of text in a paragraph.'
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user