Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

希望提供一个页面点击非编辑器位置,编辑器光标不丢失只是停止闪烁的api或配置. 提供一个可以往当前光标所在位置插入值的api. #444

Closed
lingyih opened this issue Mar 1, 2024 · 1 comment

Comments

@lingyih
Copy link

lingyih commented Mar 1, 2024

What problem does this feature solve?

系统给医生提供了一些知识库,里面会提供一下现成的模版,当用户点击知识库里的东西时,希望把知识库里的值直接插入当前光标所在位置.方便医生工作.

What does the proposed API look like?

@lingyih lingyih changed the title 希望提供一个页面点击非编辑器位置,编辑器光标不丢失只是停止闪烁的api或配置提供一个可以往当前光标所在位置插入值的api. 希望提供一个页面点击非编辑器位置,编辑器光标不丢失只是停止闪烁的api或配置. 提供一个可以往当前光标所在位置插入值的api. Mar 1, 2024
@Hufe921
Copy link
Owner

Hufe921 commented Mar 1, 2024

  1. 编辑器光标不丢失只是停止闪烁:可以在相应dom上增加 editor-component 如:menu、catalog等,让编辑器认为dom属于编辑器组件的一部分(可以参考demo的实现)
  2. 光标处插入元素:https://hufe.club/canvas-editor-docs/guide/command-execute.html#executeinsertelementlist

@Hufe921 Hufe921 closed this as completed Mar 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants