Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Lets allow using a WYSIWYG editor when editing question fields for Matching type question.
WYSIWYG obviously cannot be used for the answer fields because they are used as options in a select field. Rich text would however work fine with the question field.
Comment | File | Size | Author |
---|---|---|---|
#7 | 2205393-8-html-editor-matching-question.patch | 7.55 KB | joelpittet |
#6 | 2205393-6-html-editor-matching-question.patch | 6.21 KB | joelpittet |
#4 | quiz-allow_wysiwyg-2205393-4.patch | 7.16 KB | juho-jaakkola |
#1 | quiz-allow_wysiwyg-2205393-1.patch | 7.5 KB | juho-jaakkola |
Comments
Comment #1
juho-jaakkola CreditAttribution: juho-jaakkola commentedComment #2
juho-jaakkola CreditAttribution: juho-jaakkola commentedComment #3
juho-jaakkola CreditAttribution: juho-jaakkola commentedThis would basically fix also https://drupal.org/node/1409942
Comment #4
juho-jaakkola CreditAttribution: juho-jaakkola commentedChanges to the patch:
- Text format now has a valid default value (plain_text)
- Rebased on newer Quiz version (2656c5b3bf6072f8fed31d6571cba113df6cef30)
Comment #5
djdevinComment #6
joelpittetI've rerolled this for 5.x but to simplify I didn't nest the value I just added a 'question_format' key, smaller patch and hopefully less that can go wrong.
Comment #7
joelpittetApparently that was needed or it throws nasty db_insert errors for mismatched args.