Hufe921 / canvas-editor

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

executeSetControlHighlight 指令不生效 #673

Closed junestars closed 2 months ago

junestars commented 2 months ago

version

0.9.84

Link to minimal reproduction

https://hufe.club/canvas-editor/

Steps to reproduce

1、调用 getControlList 获取某个控件的 conceptId 2、调用 executeSetControlHighlight 设置控件高亮。 此时并不会生效,传入的参数如下图

image

What is expected?

希望控件可以正常高亮

另外,是否可以继续优化,将 ruleList 作为可选的参数,仅需 conceptId 即可设置控件高亮,这样使用起来会更加方便

What is actually happening?

控件没有高亮

System Info

No response

Any additional comments?

No response

Hufe921 commented 2 months ago

其他补充 是背景提示文本,非输入内容

junestars commented 1 month ago

其他补充 是背景提示文本,非输入内容

即便是输入的内容也没有效果 image