Skip to content
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

Why does buildTeXString have a cursorColor property? #37

Open
garv-shah opened this issue Aug 3, 2022 · 1 comment
Open

Why does buildTeXString have a cursorColor property? #37

garv-shah opened this issue Aug 3, 2022 · 1 comment
Labels
bug Something isn't working

Comments

@garv-shah
Copy link
Contributor

Bug description

node.buildTeXString() seems to have a cursorColor property, but it really shouldn't need one. All it does is append something like \textcolor{#000000}{\cursor} to the end of tex string, and it seems to break loading it back into the MathField document

To Reproduce

Steps to reproduce the behavior:
Get a MathFieldEditingController and call .currentNode.buildTexString() and try to load the string back in

Expected behavior

No cursorColor attribute, loading back in without changes

@garv-shah garv-shah added the bug Something isn't working label Aug 3, 2022
@garv-shah
Copy link
Contributor Author

also it seems like parsing it back in adds brackets every time to the end, is that intended behaviour?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Development

No branches or pull requests

1 participant