fix: remove marks

This commit is contained in:
Eric Maciel 2020-10-28 16:29:49 -04:00
parent b3ddf5dc26
commit 07a8201215
3 changed files with 2 additions and 7 deletions

View File

@ -10,21 +10,18 @@ const transforms = [
[createNode('paragraph', '')],
[
{
marks: [],
offset: 0,
path: [0, 0],
text: 'Hello ',
type: 'insert_text'
},
{
marks: [],
offset: 6,
path: [0, 0],
text: 'collaborator',
type: 'insert_text'
},
{
marks: [],
offset: 18,
path: [0, 0],
text: '!',

View File

@ -8,8 +8,7 @@ const insertTextOp = ({ index, path, value }: Automerge.Diff) => () => ({
type: 'insert_text',
path: toSlatePath(path),
offset: index,
text: value,
marks: []
text: value
})
const insertNodeOp = (

View File

@ -29,8 +29,7 @@ const removeTextOp = (op: Automerge.Diff) => (map: any, doc: Element) => {
type: 'remove_text',
path: slatePath,
offset: index,
text,
marks: []
text
}
}