arnog / mathlive

A web component for easy math input
https://cortexjs.io/mathlive
MIT License
1.41k stars 266 forks source link

[Feature] Bounding box analog to background color #2430

Open andrew-murdza opened 2 weeks ago

andrew-murdza commented 2 weeks ago

Steps to Reproduce

  1. Run this HTML code
    <!DOCTYPE html>
    <html lang="en">
    <head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Change FontShape of MathField</title>
    <script defer src="https://unpkg.com/mathlive"></script>
    </head>
    <body>
    <math-field id='mf'>1</math-field>
    </body>
    </html>
  2. Select 1, right-click, choose decoration.

Actual Behavior

The boxes don't have a checkmark and aren't togglable.

Expected Behavior

The boxes should be togglable so that you don't have to retype everything to get rid of the box. Having a bounding box is similar to bolding so it should have a similar behavior

Environment

0.100.0 Windows Chrome