fix: android 无法回删输入框内的@(mention)内容

This commit is contained in:
Pang 2023-12-21 01:05:20 +08:00 committed by kuaifan
parent 327cdbc873
commit e99e069e55
2 changed files with 4 additions and 2 deletions

View File

@ -47,7 +47,7 @@
"photoswipe": "^5.2.8",
"postcss": "^8.4.5",
"quill": "^1.3.7",
"quill-mention-hi": "^3.1.0-1",
"quill-mention-hi": "^3.1.0-2",
"resolve-url-loader": "^4.0.0",
"sass": "~1.32.13",
"sass-loader": "^12.6.0",

View File

@ -902,7 +902,9 @@ export default {
},
formatDraft(value) {
return value?.replace(/<img[^>]*>/gi, `[${$A.L('图片')}]`).replace(/<[^>]*>/g, '') || null
return value?.replace(/<img[^>]*>/gi, `[${$A.L('图片')}]`)
.replace(/<[^>]*>/g, '')
.replace(/&nbsp;/g, ' ')|| null
},
formatTodoNum(num) {