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:
@@ -108,7 +108,7 @@ The object should be one of:
|
||||
|
||||
{
|
||||
kind: 'text',
|
||||
ranges: Array
|
||||
leaves: Array
|
||||
}
|
||||
```
|
||||
|
||||
|
@@ -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.'
|
||||
}
|
||||
|
@@ -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.'
|
||||
}
|
||||
|
Reference in New Issue
Block a user