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

Implement an onRenderContextMenu to customize the context menu #82

Closed
Josnaaa opened this issue May 19, 2022 · 9 comments
Closed

Implement an onRenderContextMenu to customize the context menu #82

Josnaaa opened this issue May 19, 2022 · 9 comments
Labels
enhancement New feature or request

Comments

@Josnaaa
Copy link

Josnaaa commented May 19, 2022

As we already have a insert, remove, transfer. Are we allowed to add or delete this options???

@josdejong
Copy link
Owner

Right now there is an option to customize the main menu with onRenderMenu. There is no option yet to customize the context menu. Is that what you mean?

@josdejong josdejong added the question Further information is requested label May 19, 2022
@Josnaaa
Copy link
Author

Josnaaa commented May 19, 2022

the context menu is nothing but the below right?? If yes , then yes that's what i meant.
Screenshot from 2022-05-19 19-22-14

@josdejong
Copy link
Owner

Indeed, that's the context menu (which isn't yet customizable)

@Josnaaa
Copy link
Author

Josnaaa commented May 19, 2022

okay, Thank you for the information.

@josdejong josdejong added enhancement New feature or request and removed question Further information is requested labels Jun 9, 2022
@josdejong josdejong changed the title can we customise the menu options here, if yes, can i know how can we do it. Implement an onRenderContextMenu to customize the context menu Jun 9, 2022
@1pone
Copy link
Contributor

1pone commented Nov 29, 2023

I'm really looking forward to this feature, in fact I'm currently using the react version of the editor, but in order to implement the custom menu I had to folk a copy of the source code to try and modify the svelte code myself, however that's not something I'm good at and it's very annoying, I'll be relieved the day the feature is implemented!

@josdejong
Copy link
Owner

👍 help implementing onRenderContextMenu would be welcome.

@josdejong
Copy link
Owner

A new option onRenderContextMenu is now available in v0.21.0.

@toolsh
Copy link

toolsh commented Dec 22, 2023

A new option onRenderContextMenu is now available in v0.21.0.

good to know that, is there any example / demo code for usage of onRenderContextMenu

@josdejong
Copy link
Owner

There is an example here: /examples/custom_context_menu_buttons/+page.svelte.

At this moment there is still is an issue with the new onRenderContextMenu, see #379. It's fixed but not yet published.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants