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

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1 +1 @@
d5c6e12afdf56c66
6064a8e55cc8341c

View File

@ -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]) {