You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is something I'd like to support, and would accept a PR for. The only issue I can foresee is that I'm not sure if there is a good way to dynamically change the context menu based on what's being clicked.
What would be nice is the ability for a plugin developer to provide a function that gets applied to the text under the cursor which would determine if the menu item appears or not. I think similar functionality is already available and could maybe be extended for this use.
The text was updated successfully, but these errors were encountered:
I had actually started making some changes towards this, because I wanted to add support for saving an image from the editor, but didn't go very far.
I think the current approach for context menu is not ideal. Instead of declaring in advance the menu, the app should call some function in the plugin, and the menu could be built at that point. With that method the plugin can display different menus depending on the context.
If I remember well the tricky part was to change some sync calls to async in the app, so that it's possible to call the plugin and wait for the result.
requested on the forum
This is something I'd like to support, and would accept a PR for. The only issue I can foresee is that I'm not sure if there is a good way to dynamically change the context menu based on what's being clicked.
What would be nice is the ability for a plugin developer to provide a function that gets applied to the text under the cursor which would determine if the menu item appears or not. I think similar functionality is already available and could maybe be extended for this use.
The text was updated successfully, but these errors were encountered: