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

Update the sample problems to use the pg-codemirror-editor with CodeMirror 6. #1149

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

drgrice1
Copy link
Member

This updates the script and generated tutorial code to use the pg-codemirror-editor package which uses CodeMirror 6, rather than using CodeMirror 5. This script is used to generate the html sample problem pages linked to on the webwork wiki.

Comment on lines 10 to 13
<script
src="https://cdn.jsdelivr.net/npm/@openwebwork/pg-codemirror-editor@0.0.1-beta.26/dist/pg-codemirror-editor.js"
defer
>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I assume there is no better way than to hard code the version here, just feel this could get overlooked during a release.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unfortunately, there isn't. This isn't like the packages installed by npm where the version is automatically handled by the package system. I don't really like it either, although, it was previously a hard coded version of the CodeMirror 5 package that was there. So it doesn't really change anything with that.

I plan to remove the beta version before the next release, and once there is a stable version here it should be fine.

@drgrice1 drgrice1 force-pushed the sample-problems-use-pg-codemirror branch 2 times, most recently from c49f958 to 643a5ff Compare December 3, 2024 21:27
@drgrice1 drgrice1 force-pushed the sample-problems-use-pg-codemirror branch 2 times, most recently from de3eadb to 2a4dd2b Compare December 11, 2024 13:22
@drgrice1 drgrice1 force-pushed the sample-problems-use-pg-codemirror branch from ff90af1 to 5a2ff84 Compare December 18, 2024 14:25
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

Successfully merging this pull request may close these issues.

3 participants