Update the mqeditor to use MathQuill's new internal toolbar.#1417
Conversation
|
I'm unsure that I am testing this correctly. I cloned the mathquill repo at Then I checked out this branch of pg and in |
9cafe67 to
45bdd18
Compare
|
I changed the testing instructions a bit. There were some steps I missed that might be why you weren't seeing the changes in effect. |
|
Do you have any console errors or warnings? |
a526e6f to
ec03fce
Compare
|
There are no console errors. |
|
I am not sure what is going wrong for you. Can you delete the local storage key named |
|
What is the minimized file generated for the |
|
Can you verify that if you execute Try executing |
In local storage, I saw that variable, and it is set to But I deleted it anyway, and reloaded the page. Now everything is working. And I also see the excess whitespace from "Disable Toolbar" is gone, so I know I'm on the right branch. So....good? Is there anything I should do to test the other changes? Would Apple VoiceOver reveal changes now? |
|
I have not tested with Apple VoiceOver. Testing with that would be good. There should be differences between this pull request and the PG-2.21 branch. Particularly when you use toolbar buttons. |
|
Alright, I gave it a go. But using Apple VoiceOver is torture. Either it's broken on my Mac, or navigation with that on just makes no sense. I tried using Apple's tutorial too, and it doesn't help. I think I would need to use it in person with a human training me. So I have nothing to add. But nothing seems broken! So I will approve the PR. |
|
I remember testing it on my daughter's school MacBook at some point. I didn't know how to use it either. I also tested the Android TalkBack, and had much the same experience. I have figured out how to use Gnome Orca and NCDA, but that also took some time to figure out. Screen reader usage does seem to not be easy. |
|
@drgrice1 |
|
Yeah, I set |
These are changes needed to use the new internal toolbar implemented in openwebwork/mathquill#46. To test this you need to use that branch. Clone that branch somewhere on the webwork2 server, and then in the directory of that clone execute ```bash npm ci npm run build npm link ``` Then in the `pg/htdocs` directory run `npm link @openwebwork/mathquill`. After doing so if you look at `pg/htdocs/node_modules/@openwebwork/mathquill` you will see that it is now a link to the MathQuill clone above. Execute `npm ci` again to reset that back to the currently published MathQuill version. Once openwebwork/mathquill#46 is merged, I will publish it and add it to this pull request. So don't merge this pull request until then.
ec03fce to
dd880ca
Compare
|
In testing this, the enable/disable toolbar seems to be for individual mathquilll blanks when initially changing the setting. I have a problem, multiple answer blanks, toolbar is enabled. I click disable toolbar, I go to the next blank, it is still enabled. In effect I can enable/disable per answer box of a currently open problem. Now if I reload the page, the default is set to whatever the last setting was for enabled/disabled. So the initial load they are all in the same state. |
|
Hmm... I am seeing that too. I will look into it. |
|
That issue is fixed in openwebwork/mathquill#47. |
|
I went ahead and published @openwebwork/mathquill#47 to npm and added it to this branch (although that pull request is not merged into @openwebwork/mathquill yet). So you can test this pull request directly by just running |
somiaj
left a comment
There was a problem hiding this comment.
Everything I tested work now that the enable/disable is fixed.
|
I'll leave it to someone else to double check things via |
|
I checked again with a fresh |

These are changes needed to use the new internal toolbar implemented in openwebwork/mathquill#46.
To test this you need to use that branch. Clone that branch somewhere on the webwork2 server, and then in the directory of that clone executeThen checkout the branch for this pull request in the
/opt/webwork/pgdirectory (or wherever you have the PG repository). Make sure you runnpm ciin thepg/htdocsdirectory before doing the following so that the JavaScript and css for PG is all updated.Then in the
pg/htdocsdirectory runnpm link @openwebwork/mathquill. After doing so if you look atpg/htdocs/node_modules/@openwebwork/mathquillyou will see that it is now a link to the MathQuill clone above.Now restart the webwork2 app.
One last important step. Since the
package.jsonfile is not changed (so the version of @openwebwork/mathquill is still reported as the same), the browser may still load the cached version of MathQuill. So you may need to do a hard refresh in the browser to get it to load the updated MathQuill javascript.When you are done testing this branch, execute
npm ciagain to remove the symbolic link and go back to using the currently published MathQuill version.Once openwebwork/mathquill#46 is merged, I will publish the changes in openwebwork/mathquill#46 and add it to this pull request. So don't merge this pull request until then.Edit: Now that openwebwork/mathquill#46 has been merged and published, you can just test this by running
npm cias usual.