Hufe921 / canvas-editor

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

instance.command.getPositionContextByEvent(evt)返回的element.value不是元素的值。 #741

Closed bettersoft123 closed 1 month ago

bettersoft123 commented 1 month ago

version

0.9.77

Link to minimal reproduction

No response

Steps to reproduce

instance.command.getPositionContextByEvent(evt)返回的当前位置的value,不是整个元素的值,这种返回数据没有意义。能否返回这个元素的全部内容?

What is expected?

微信图片_20240806103011

What is actually happening?

如上

Editor Value

No response

System Info

No response

Any additional comments?

No response

Hufe921 commented 1 month ago

这里元素值为显示值,控件值可以通过getControlValue获取