no message

This commit is contained in:
kuaifan
2022-12-04 15:40:31 +08:00
parent 19bcc8f3b6
commit 5627baa1cc
6 changed files with 11 additions and 5 deletions
+1 -1
View File
File diff suppressed because one or more lines are too long
+1 -1
View File
File diff suppressed because one or more lines are too long
+1 -1
View File
File diff suppressed because one or more lines are too long
+1 -1
View File
File diff suppressed because one or more lines are too long
+1 -1
View File
@@ -1 +1 @@
d5c6e12afdf56c66
6064a8e55cc8341c
@@ -662,6 +662,12 @@ export default {
attributes: {},
insert: op.insert
};
try {
// 替换 mention 对象为纯文本
if (typeof obj.insert.mention === "object" && node.innerHTML) {
obj.insert = node.innerHTML.replace(/<[^>]+>/g, "")
}
} catch (e) { }
if (op.attributes) {
['bold', 'strike', 'italic', 'underline', 'list', 'blockquote', 'link'].some(item => {
if (op.attributes[item]) {