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:
@@ -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 }],
|
||||
}
|
||||
})
|
||||
}
|
||||
|
Reference in New Issue
Block a user