-
-
Notifications
You must be signed in to change notification settings - Fork 297
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
Disable menu button #2180
Comments
P.S. This context menu is game-changing. Thank you so much!!! |
You can hide the menu toggle with: math-field::part(menu-toggle) {
display: none;
} and you can set the menu to be empty with
The later is needed since the menu would otherwise still be accessible by right-clicking. Let me know if this works for you. Depending on how you intercept the context menu, this may still "hide" your editor menu, though. |
OK, after looking into this some more, setting I have checked in a fix. Now, setting |
This fix is now available in MathLive 0.97.1 |
Thanks a bunch! |
Description
We use mathlive in an inline context (embedded within another text editor). The menu button is convenient, but we already have something similar in the menu of the parent editor; is there a way to hide it, and allow the user to use the context menu + parent editor instead?
...I could just grab a reference to the div and delete it, but that seems fragile...
Steps to Reproduce
Create a mathfield by any means (even visiting the demo site) - observe there is no property for disabling the menu button.
Actual Behavior
There is no property for disabling the menu button.
Expected Behavior
Like the keyboard button, there should be a property for toggling the menu button.
Environment
MathLive version If using the cortexjs.io site, the version is displayed
at the bottom of the page. If using the library, the version is available as
MathfieldElement.version
0.97.0
I believe the code is L323 of mathfield-private.ts, where the keyboard has an option above.
Operating System macOS, Windows, iOS. Include the version
Browser Safari, Chrome, Edge, Firefox, etc... Try several browsers and note
if there are differences between browsers.
macOS, Chrome 119.0.6045.123
The text was updated successfully, but these errors were encountered: