fix: 明确支持的指定的富文本格式渲染,避免富文本节点输入时触发其他渲染错乱问题

This commit is contained in:
ZhangMingZhao1
2024-11-07 17:16:02 +08:00
parent d8a88f94d7
commit eb89bd71e1

View File

@@ -473,6 +473,16 @@ class RichText {
}
}
},
formats: [
'bold',
'italic',
'underline',
'strike',
'color',
'background',
'font',
'size'
], // 明确指定允许的格式,不包含有序列表,无序列表等
theme: 'snow'
})
// 拦截复制事件即Ctrl + c去除多余的空行