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

enabling MathQuill after an answer was entered, you don't see the answer upon returning #2158

Open
Alex-Jordan opened this issue Aug 4, 2023 · 4 comments

Comments

@Alex-Jordan
Copy link
Contributor

If a course does not use MathQuill, you can submit an answer to some currently open exercise. Then go to enable MathQuill, and return to the exercise. It won't pre-populate the input field with something. At least not the part you can see. I understand this is probably because on the previous submission, no MathQuill string was recorded.

Is there a way that MQ could grab the previous plain answer and render it into a MQ string for this?

@drgrice1
Copy link
Sponsor Member

drgrice1 commented Aug 4, 2023

This is a well known issue (to me at least). We could put the previous plain answer into the MathQuill field, but it won't look right, and it might not parse in MathQuill in some situations.

@Alex-Jordan
Copy link
Contributor Author

Is it worth having MathQuill running all the time, even when not used, just to store the MQ string?

@drgrice1
Copy link
Sponsor Member

drgrice1 commented Aug 4, 2023

That wouldn't work unless the user is actually typing in the MathQuill input. The MathQuill string can't be created from what is typed in the text input.

@drgrice1
Copy link
Sponsor Member

drgrice1 commented Aug 9, 2023

I tried several approaches to get the answer to appear in the MathQuill input if MathQuill is re-enabled after being disabled. However, I keep getting right back to where we were when we implemented the MathQuill input, and the whole reason that the hidden latex input was added. There is no reliable way to get the answer in a form that works for MathQuill and resembles the text form of the answer.

I think the only real fix for this is actually to remove the option for users to be able to disable MathQuill entirely. Of course to be able to do this we need to make MathQuill fully accessible. That can be done, but will take some work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants