Hufe921 / canvas-editor

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

使用executeLocationControl API定位控件时,光标位置可配置 #749

Closed junestars closed 4 weeks ago

junestars commented 1 month ago

version

0.9.88

Link to minimal reproduction

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

Steps to reproduce

1、插入文本控件,并输入一些值 2、使用 executeLocationControl 激活控件

结果:会发现光标的位置在控件内文本的开始处,而不是在末尾

What is expected?

希望 executeLocationControl API 使控件获取到焦点时,光标设置在控件内文本的末尾

What is actually happening?

光标的位置在控件内文本的开始处

Editor Value

No response

System Info

No response

Any additional comments?

No response