Hufe921/canvas-editor

excuteSetHtml 执行后标题没有渲染

Closed this issue · 1 comments

version

0.9.76

Link to minimal reproduction

No response

Steps to reproduce

我使用setHtml函数,调用后发现h1,h2,h3等标签,虽然被识别成了标题内容,但是没有渲染为标题样式,没有增加bold等样式
,跟踪代码发现level明明被标记为了second,但是后期又会强制还原

What is expected?

期望setHtml函数能够渲染标题(h1,h2,h3....)

What is actually happening?

执行executeSetHtml 函数,html标签中包含h1,h2,h3

System Info

No response

Any additional comments?

No response

1717551913999
增加属性兼容性检查
1717551913999