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

Atto style dropdown button not working if table button is not present

    XMLWordPrintable

    Details

    • Testing Instructions:
      Hide
      1. Go to Site administration ► Plugins ► Text editors ► Atto HTML editor ► Atto toolbar settings
      2. On the "Toolbar config" text area, make sure that its contents are the same as the Default. If not, copy the default values and paste into the "Toolbar config" text area and click on "Save changes"
      3. Go to a page with an Atto editor. (i.e. Edit profile page, by going to Preferences ► User account ► Edit profile)
      4. On the Atto editor, play with the buttons. Confirm that:
        1. All buttons function as expected.
        2. There should be no errors displayed in the JavaScript console.
      5. Go back to to Site administration ► Plugins ► Text editors ► Atto HTML editor ► Atto toolbar settings
      6. On the "Toolbar config" text area, remove the "table" entry which can be found on the "insert" line.
      7. Click "Save changes"
      8. Go to a page with an Atto editor. (i.e. Edit profile page, by going to Preferences ► User account ► Edit profile)
      9. On the Atto editor, play with the buttons. Confirm that:
        1. All buttons function as expected.
        2. There should be no errors displayed in the JavaScript console.
      Show
      Go to Site administration ► Plugins ► Text editors ► Atto HTML editor ► Atto toolbar settings On the "Toolbar config" text area, make sure that its contents are the same as the Default. If not, copy the default values and paste into the "Toolbar config" text area and click on "Save changes" Go to a page with an Atto editor. (i.e. Edit profile page, by going to Preferences ► User account ► Edit profile) On the Atto editor, play with the buttons. Confirm that: All buttons function as expected. There should be no errors displayed in the JavaScript console. Go back to to Site administration ► Plugins ► Text editors ► Atto HTML editor ► Atto toolbar settings On the "Toolbar config" text area, remove the "table" entry which can be found on the "insert" line. Click "Save changes" Go to a page with an Atto editor. (i.e. Edit profile page, by going to Preferences ► User account ► Edit profile) On the Atto editor, play with the buttons. Confirm that: All buttons function as expected. There should be no errors displayed in the JavaScript console.
    • Affected Branches:
      MOODLE_28_STABLE
    • Fixed Branches:
      MOODLE_29_STABLE, MOODLE_30_STABLE
    • Pull Master Branch:
      MDL-50564-master

      Description

      In Atto if you remove table from the list of button, the style dropdown button throws a js error.

      TypeError: Y.M.editor_atto.Menu is not a constructor
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned
              Reporter:
              stuartlamour Stuart Lamour
              Peer reviewer:
              Jun Pataleta
              Integrator:
              David Monllaó
              Tester:
              Simey Lameze
              Participants:
              Component watchers:
              Andrew Nicols, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
              Votes:
              2 Vote for this issue
              Watchers:
              7 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                21/Dec/15