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

[Question] 想用插件实现一个功能,匹配文件类型,渲染 react 自定义编辑器,除了用插件内置的 webview 实现之外,还有其他办法吗? #3677

Open
zhang-xiaoyan opened this issue May 15, 2024 · 4 comments
Labels
💬 question Further information is requested

Comments

@zhang-xiaoyan
Copy link

描述你的问题(Describe you question here)

1、用插件实现
2、匹配某种类型文件
3、渲染 react 自定义编辑器

@zhang-xiaoyan zhang-xiaoyan added the 💬 question Further information is requested label May 15, 2024
@hacke2
Copy link
Member

hacke2 commented May 15, 2024

@zhang-xiaoyan
Copy link
Author

https://opensumi.com/zh/docs/extension/interface/custom-editor-component

package.json 中我该怎么写呢?帮忙写个 demo

@zhang-xiaoyan
Copy link
Author

zhang-xiaoyan commented May 15, 2024

我在 package.json 这样写的,未生效
企业微信截图_17157427761819
企业微信截图_17157429395105
企业微信截图_17157430063916

@erha19
Copy link
Member

erha19 commented May 15, 2024

@zhang-xiaoyan 插件定制不支持对特定文件进行拦截,只能定义特定协议文件,如 custom-schema:// 文件的打开方式

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
💬 question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants