We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
想实现从自定义视图拖拽到编辑器的拖拽效果,请问有什么好的实现方式。 我自己用antd的tree组件,拖拽到其他视图时没有触发到拖拽的回调函数。
The text was updated successfully, but these errors were encountered:
目前编辑器对拖拽事件的响应只有打开 dragTransfer 中的 uri 数据 如果要实现除了“打开 uri” 之外的功能,比如可视化搭建等等,可能需要获取当前编辑器实例然后在 monaco 的相关事件上绑定一下
Sorry, something went wrong.
谢谢回复 1.编辑器实例要怎么获取? 2. monaco 事件绑定要怎么做呢? 有类似的代码例子吗?
我试过修改上图代码,没有生效(node_modules里的代码)。还找过MonacoService和WorkbenchEditorService的api,没有看到拖拽相关的事件
No branches or pull requests
想实现从自定义视图拖拽到编辑器的拖拽效果,请问有什么好的实现方式。
我自己用antd的tree组件,拖拽到其他视图时没有触发到拖拽的回调函数。
The text was updated successfully, but these errors were encountered: