josdejong / jsoneditor

A web-based tool to view, edit, format, and validate JSON
http://jsoneditoronline.org
Apache License 2.0
11.63k stars 2.04k forks source link

Customize buttons in the main menu #831

Open shenenya opened 5 years ago

shenenya commented 5 years ago

Is it possible to extend the main menu bar as the context menu? Thanks.

josdejong commented 5 years ago

For the context menu you have the onCreateMenu callback to customize it. For the main menu there is no such feature. Sounds like a good idea, I will put this as a feature request ok?

shenenya commented 5 years ago

Great. Thanks.

cherry-wave commented 3 years ago

Is this still a thing 2 years later? I want my users to only have the button for "format json" and nothing else ;D

josdejong commented 3 years ago

There is still no customization option for the main menu, but you can hide the buttons you don't want using CSS: each button has a unique class name.