math_keyboard icon indicating copy to clipboard operation
math_keyboard copied to clipboard

Why does buildTeXString have a cursorColor property?

Open garv-shah opened this issue 2 years ago • 1 comments

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 avatar Aug 03 '22 11:08 garv-shah

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

garv-shah avatar Aug 03 '22 11:08 garv-shah