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

The template editor should set the editor fieldtype

XMLWordPrintable

    • MOODLE_311_STABLE, MOODLE_39_STABLE, MOODLE_400_STABLE
    • MOODLE_311_STABLE, MOODLE_39_STABLE, MOODLE_400_STABLE
    • MDL-75909-master
    • Hide
      1. Create a new database activity
      2. Create a field in that database (any field will do)
      3. View the templates page
      4. Ensure that the "Enable editor" checkbox is checked
      5. View the source, and find each of the textareas on the page
        1. *Confirm that each of the textareas on the page has a "data-fieldtype="editor"" attribute
      6. Repeat for each of the Template types available
      7. Uncheck the "Enable editor" checkbox
      8. View the source, and find each of the textareas on the page
        1. *Confirm that each of the textareas on the page has no "data-fieldtype" attribute at all
      9. Repeat for each of the Template types available
      Show
      Create a new database activity Create a field in that database (any field will do) View the templates page Ensure that the "Enable editor" checkbox is checked View the source, and find each of the textareas on the page *Confirm that each of the textareas on the page has a " data-fieldtype="editor" " attribute Repeat for each of the Template types available Uncheck the "Enable editor" checkbox View the source, and find each of the textareas on the page *Confirm that each of the textareas on the page has no " data-fieldtype " attribute at all Repeat for each of the Template types available

      The mod_data template editor can use the HTML editor, but it does not indicate this properly to Behat.

      We should set the data-fieldtype on the textarea when the html editor is in use.

        1. master_1_MDL-75909.png
          262 kB
          John Edward Pedregosa
        2. master_2_MDL-75909.png
          221 kB
          John Edward Pedregosa
        3. v311_1_MDL-75909.png
          184 kB
          John Edward Pedregosa
        4. v311_2_MDL-75909.png
          235 kB
          John Edward Pedregosa
        5. v39_1_MDL-75909.png
          179 kB
          John Edward Pedregosa
        6. v39_2_MDL-75909.png
          216 kB
          John Edward Pedregosa
        7. v400_1_MDL-75909.png
          193 kB
          John Edward Pedregosa
        8. v400_2_MDL-75909.png
          278 kB
          John Edward Pedregosa

            dobedobedoh Andrew Lyons
            dobedobedoh Andrew Lyons
            Simey Lameze Simey Lameze
            Jun Pataleta Jun Pataleta
            John Edward Pedregosa John Edward Pedregosa
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 2 hours, 24 minutes
                2h 24m

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