1
0
mirror of https://github.com/ianstormtaylor/slate.git synced 2025-08-01 04:50:27 +02:00

update doc's text node key ranges -> leaves (#1343)

This commit is contained in:
Ryan
2017-10-30 11:06:50 -05:00
committed by Ian Storm Taylor
parent 3fcaedc625
commit 49ebbf9595
3 changed files with 7 additions and 7 deletions

View File

@@ -108,7 +108,7 @@ The object should be one of:
{
kind: 'text',
ranges: Array
leaves: Array
}
```

View File

@@ -41,7 +41,7 @@ const initialValue = Value.fromJSON({
nodes: [
{
kind: 'text',
ranges: [
leaves: [
{
text: 'A line of text in a paragraph.'
}
@@ -71,7 +71,7 @@ const initialValue = Value.fromJSON({
nodes: [
{
kind: 'text',
ranges: [
leaves: [
{
text: 'A line of text in a paragraph.'
}

View File

@@ -24,7 +24,7 @@ const initialValue = Value.fromJSON({
nodes: [
{
kind: 'text',
ranges: [
leaves: [
{
text: 'A line of text in a paragraph.'
}
@@ -74,7 +74,7 @@ const initialValue = Value.fromJSON({
nodes: [
{
kind: 'text',
ranges: [
leaves: [
{
text: 'A line of text in a paragraph.'
}
@@ -128,7 +128,7 @@ const initialValue = Value.fromJSON(existingValue || {
nodes: [
{
kind: 'text',
ranges: [
leaves: [
{
text: 'A line of text in a paragraph.'
}
@@ -180,7 +180,7 @@ const initialValue = Value.fromJSON(existingValue || {
nodes: [
{
kind: 'text',
ranges: [
leaves: [
{
text: 'A line of text in a paragraph.'
}