Commit 094ff12
authored
Fix: Strip formatting when pasting into builder title fields (#3093)
* Show Mark Complete button when quiz requirements are met
Fixes #3058
When a lesson has an attached quiz, students who mark the lesson as
incomplete can now re-mark it as complete without retaking the quiz,
provided they have already met the quiz requirements.
Changes:
- Modified llms_show_mark_complete_button() to check quiz completion status
- Added 4 new unit tests for quiz completion scenarios
* Fix: Strip formatting when pasting into builder title fields
Adds a paste event handler for contenteditable elements that
do not have the data-formatting attribute. This ensures that
lesson, quiz, and section titles receive plain text when
users paste formatted content from external sources.
Fixes #3057
* Remove mark complete changes (belong to different PR #3092)
* Add changelog entry for PR #3093
Fixes #30571 parent bde41cf commit 094ff12
2 files changed
+10
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
| 12 | + | |
| 13 | + | |
13 | 14 | | |
14 | 15 | | |
15 | 16 | | |
| |||
36 | 37 | | |
37 | 38 | | |
38 | 39 | | |
| 40 | + | |
39 | 41 | | |
40 | 42 | | |
41 | 43 | | |
| |||
0 commit comments