update graphemes
This commit is contained in:
@@ -196,6 +196,8 @@ function editorJsonToText(json: JSONContent): string {
|
|||||||
text += json.text || ''
|
text += json.text || ''
|
||||||
} else if (json.type === 'mention') {
|
} else if (json.type === 'mention') {
|
||||||
text += `@${json.attrs?.id || ''}`
|
text += `@${json.attrs?.id || ''}`
|
||||||
|
} else if (json.type === 'tag') {
|
||||||
|
text += `#${json.attrs?.id || ''}`
|
||||||
}
|
}
|
||||||
return text
|
return text
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user