feat(server): SmartTextEditorValue.attachments multiregion support (#3513)
This commit is contained in:
committed by
GitHub
parent
42db2f6b82
commit
9b5873e4f5
@@ -223,13 +223,14 @@ export = {
|
||||
*/
|
||||
text(parent) {
|
||||
const commentText = parent?.text || ''
|
||||
return ensureCommentSchema(commentText as SmartTextEditorValueSchema)
|
||||
return {
|
||||
...ensureCommentSchema(commentText),
|
||||
projectId: parent.streamId
|
||||
}
|
||||
},
|
||||
|
||||
rawText(parent) {
|
||||
const { doc } = ensureCommentSchema(
|
||||
(parent.text as SmartTextEditorValueSchema) || ''
|
||||
)
|
||||
const { doc } = ensureCommentSchema(parent.text || '')
|
||||
return documentToBasicString(doc)
|
||||
},
|
||||
async hasParent(parent) {
|
||||
|
||||
Reference in New Issue
Block a user