Open fred-wang opened 10 years ago
It could be helpful if the edit box have some buttons to insert:
- unicode characters: greek letters, etc
- math constructions: \frac{}{} \sqrt{} etc
Agree. Unfortunately CKEditor API don't make easy to add this feature:
It could be helpful if the edit box have some buttons to insert:
(see http://fred-wang.github.io/MozSummitMathML/editor.html for some ideas)
If some text is selected, the unicode characters could replace the selection.
For constructions, the selection could be used as an argument. For example if you type "2+y", select the "y" and press the "fraction" button, the new source will be "2+\frac{y}{}". This is similar to what we sometimes find on forums with e.g. [b]...[/b] commands to make text bold.