mathquill4quill icon indicating copy to clipboard operation
mathquill4quill copied to clipboard

Non commands as button values issue

Open nesh325 opened this issue 2 years ago • 0 comments

Looked at this previous issue - #39

The proposed solution at the end that was merged does not work properly.

For example ['\dot{a}', '\dot{a}'] only works with myField.cmd instead of myField.write and the {a} needs to be on both otherwise it doesn't print anything. But doing so you can't edit what's in the curly brackets

This is what prints out in the text area - It doesn't convert to a preview either

Screen Shot 2022-08-04 at 17 32 25 PM

This is what the output is when it's saved which is correct

Screen Shot 2022-08-04 at 19 15 15 PM

Further testing done and found that React version works differently than the regular Javascript/HTML version. This seems to be the main issue in why it's not rendering the commands properly.

React - https://justamouse.com/mathquill4quill/reactjs/

Typing '\dot' and then hitting enter returns just 'dot'

HTML/Javascript - https://justamouse.com/mathquill4quill/

Typing the above and hitting enter displays the the actual output with curser set to below the dot where you can enter a character

Tested on Javascript/HTML version and the non command button works just fine Screen Shot 2022-08-05 at 04 22 56 AM

nesh325 avatar Aug 04 '22 23:08 nesh325