1
0
mirror of https://github.com/ianstormtaylor/slate.git synced 2025-08-31 02:49:56 +02:00

remove marks, in favor of text properties (#3235)

* remove marks, in favor of text properties

* fix lint

* fix more examples

* update docs
This commit is contained in:
Ian Storm Taylor
2019-12-05 11:21:15 -05:00
committed by GitHub
parent 31df397930
commit 4c03b497d9
205 changed files with 792 additions and 4208 deletions

View File

@@ -16,7 +16,6 @@ const defaultValue = [
children: [
{
text: 'A line of text in a paragraph.',
marks: [],
},
],
},
@@ -44,7 +43,6 @@ const defaultValue = [
children: [
{
text: 'A line of text in a paragraph.',
marks: [],
},
],
},
@@ -80,7 +78,6 @@ const defaultValue = existingValue || [
children: [
{
text: 'A line of text in a paragraph.',
marks: [],
},
],
},
@@ -129,7 +126,7 @@ const deserialize = string => {
// Return a value array of children derived by splitting the string.
return string.split('\n').map(line => {
return {
children: [{ text: line, marks: [] }],
children: [{ text: line }],
}
})
}