Commit 5cad0e0b authored by chris's avatar chris

add user

parent 9a0e8a16
......@@ -42,7 +42,9 @@ class InsertQuoteMarkCommand extends Command {
}
createTrackQuote(params, sel, mark) {
const containerId = params.surface.containerId
const { surface } = params
const { user } = surface.context.editor.props
const { containerId } = surface
params.editorSession.transaction(tx => {
tx.insertText(mark)
tx.create({
......@@ -54,8 +56,8 @@ class InsertQuoteMarkCommand extends Command {
startOffset: sel.start.offset,
endOffset: sel.start.offset + 1,
user: {
id: 'user.id',
username: 'user.username',
id: user.id,
username: user.username,
},
})
})
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment