-
Notifications
You must be signed in to change notification settings - Fork 128
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
请问 Editor ContextMenu 支持自定义右键菜单吗? #876
Comments
谢谢回复, |
如果你是想要针对 monaco-editor 的编辑器添加/删除菜单的话,这个 Molecule 这边没有相关的 API 去实现。 而且 monaco-editor 目前针对删除菜单项也没有相关的 API 可以调用。 我提供一个思路,但是不一定可行,你可以测试一下。
|
好嘞,我明白了。我先去逝一逝 |
Question
我查看了所有的内置数据,没有发现
editor
相关右键菜单的数据。虽然官网示例的
demo
上有许多editor
右键菜单选项,但我去翻阅源码里面却没有找到。(源码和官网API也只找到folderTree
相关的菜单代码ono)我觉得应该是可以自定义的,可能是我没有找对地方,所以来寻求一下思路。
The text was updated successfully, but these errors were encountered: