Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-29701

mform disableif doesn't work on 'editor' element when wysiwig enabled

    Details

    • Testing Instructions:
      Hide

      This may only be testable by a dev as it relies on setting up a form that uses disabledif on an editor.

      To test, add this code inside a form:

      $mform->addElement('editor', 'fieldname', 'Editor');
      $mform->addElement('checkbox', 'somechekbox', 'Check to disable');
      $mform->disabledIf('fieldname', 'somechekbox', 'checked');
      

      Show
      This may only be testable by a dev as it relies on setting up a form that uses disabledif on an editor. To test, add this code inside a form: $mform->addElement('editor', 'fieldname', 'Editor'); $mform->addElement('checkbox', 'somechekbox', 'Check to disable'); $mform->disabledIf('fieldname', 'somechekbox', 'checked');
    • Affected Branches:
      MOODLE_20_STABLE, MOODLE_26_STABLE, MOODLE_28_STABLE, MOODLE_29_STABLE

      Description

      If you have a field that uses htmleditor and the user allows wysiwigs - the disableif check doesn't work - if they elect to use standard web forms in their profile - it works as expected.

      I can take a look at this - just might need some pointers on where/how to go about fixing it.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Votes:
                  4 Vote for this issue
                  Watchers:
                  6 Start watching this issue

                  Dates

                  • Created:
                    Updated: