Skip to content

Commit

Permalink
Use the Mojolicious template language for CodeMirror when editing ach…
Browse files Browse the repository at this point in the history
…ievement notifications.

The new codemirror-lang-mt package is used for this, and support for
that language has been added to the pg-codemirror-editor.
  • Loading branch information
drgrice1 committed Oct 18, 2024
1 parent ad4df93 commit ac27248
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 18 deletions.
59 changes: 44 additions & 15 deletions htdocs/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion htdocs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
},
"dependencies": {
"@fortawesome/fontawesome-free": "^6.5.2",
"@openwebwork/pg-codemirror-editor": "^0.0.1-beta.7",
"@openwebwork/pg-codemirror-editor": "^0.0.1-beta.13",
"bootstrap": "~5.3.3",
"flatpickr": "^4.6.13",
"iframe-resizer": "^4.3.11",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,7 @@
% }
%
<div class="mb-2">
% # FIXME: This should not be using perl. Mojolicious templates have embedded perl, but are not perl.
<%= generate_codemirror_html($c, 'achievementNotification', $achievementNotification, 'perl') =%></div>
<%= generate_codemirror_html($c, 'achievementNotification', $achievementNotification, 'mt-text') =%></div>
%
% # Output action forms
% my $default_choice;
Expand Down

0 comments on commit ac27248

Please sign in to comment.