Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-37417 Question editing forms improvements
  3. MDL-29394

Use a hidden field instead of a selector when there is only one html editor format option

XMLWordPrintable

    • MOODLE_20_STABLE, MOODLE_21_STABLE, MOODLE_22_STABLE
    • MOODLE_21_STABLE
    • git@github.com:colchambers/moodle.git
    • Easy
    • Hide

      Find a form with an html editor with only 1 option in the format options select list below the editor itself. quiz question type forms are a good place or the description field of course activity edit forms with html format selected. With fix applied the select list should disappear. View the source for the format option field as a hidden form field.

      Show
      Find a form with an html editor with only 1 option in the format options select list below the editor itself. quiz question type forms are a good place or the description field of course activity edit forms with html format selected. With fix applied the select list should disappear. View the source for the format option field as a hidden form field.

      Moodle quiz question type forms can get quite lengthy. It would help to hide fields that aren't essential. There is often only one format option available in question type html editor fields. So the select field is irrelevant. Use a hidden input field instead,

      This is a core change which will affect all html editor instances. This issue also occurs in course activity edit forms with the introduction field. Space will be saved there too.

      This option is common in in the description field of the course activity settings forms and in quiz question types such as Drag and drop and matching.

      OU bug #947

            colchambers Colin Chambers
            colchambers Colin Chambers
            Tim Hunt Tim Hunt
            Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
            Sam Hemelryk Sam Hemelryk
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.