Hufe921 / canvas-editor

rich text editor by canvas/svg
https://hufe.club/canvas-editor-docs
MIT License
3.43k stars 498 forks source link

executeUpdateElementById方法不生效 #689

Closed paddingC closed 1 month ago

paddingC commented 1 month ago

version

0.9.85

Link to minimal reproduction

No response

Steps to reproduce

instance.command.executeUpdateElementById({ id: catalogItem.id, properties: { value: value } })

What is expected?

调用方法正常返回内容

What is actually happening?

image

if里面判断条件应该有误,

image

而且在外部更改对应id内容是也存在bug,只能替换寻找到的第一条信息,后面同样的id信息就会多余,无法处理

System Info

No response

Any additional comments?

No response

Hufe921 commented 1 month ago

没有id的元素不支持修改