arnog / mathlive

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

The readonly expression can be replaced and edited as a whole #2476

Open chenqianhe opened 2 months ago

chenqianhe commented 2 months ago

Description

The readonly expression can be replaced and edited as a whole

Steps to Reproduce

  1. go to https://cortexjs.io/mathlive/guides/fill-in-the-blank/ and see the first readonly expression
  2. select all by double-clicking
  3. replace all contents directly by typing on the keyboard

https://github.com/user-attachments/assets/9bb0dcd6-c8fc-46a9-a228-a3478120e33e

Actual Behavior

The readonly expression is replaced

Expected Behavior

Invalid operation

Environment

MathLive version not provided

macOS Chrome Version 127.0.6533.89 (Official Build) (arm64)

arnog commented 2 months ago

Cleaned up comment above to make it more readable.