mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-04-21 22:02:05 +02:00
update doc's text node key ranges -> leaves (#1343)
This commit is contained in:
parent
3fcaedc625
commit
49ebbf9595
@ -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.'
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user