umodoc / editor

Umo Editor is an open-source document editor, based on Vue3 and Tiptap. Umo Editor 是一个基于 Vue3 和 Tiptap 的适合于国人使用的本土化开源文档编辑器。
https://editor.umodoc.com/en/docs
MIT License
171 stars 30 forks source link

[功能建议]: 请教一下,bubbleMenu有控制打开的方法吗 #28

Closed qtch closed 1 month ago

qtch commented 1 month ago

你的功能建议是否和某个问题相关?

假如先点击了文章某一处,再点击工具栏的某一个按钮,希望打开bubbleMenu,定位在之前点击的那里

你希望看到什么解决方案?

希望打开bubbleMenu,定位在上次光标闪烁的那里

你考虑过哪些替代方案?

通过popup试图实现,但是位置没办法出现在光标的地方

你有其他上下文或截图吗?

No response

其他说明

No response

意向参与贡献

umodoc commented 1 month ago

可以尝试使用 document.enableBlockMenu 配置项,见文档:https://editor.umodoc.com/cn/docs/options/document#documentenablebubblemenu