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

Atto editor throws JS error if equation plugin is not included

    XMLWordPrintable

Details

    • MOODLE_30_STABLE
    • MOODLE_30_STABLE, MOODLE_31_STABLE
    • wip-MDL-55183-master
    • Hide
      1. Download and install the essential theme (theme_essential) from the plugin database.
      2. Change over to use the essential theme [Site administration  ► Appearance  ► Themes  ► Theme selector].
      3. Uninstall the equation plugin from atto.
        1. Go to the atto toolbar settings. [Site administration  ► Plugins  ► Text editors  ► Atto HTML editor  ► Atto toolbar settings]
        2. Uninstall the equation editor.
        3. Make sure to remove the equation editor directory. lib/editor/atto/plugins/equation/
      4. Edit the Toolbar config to be the following:

        style1 = bold, italic, underline, subscript, superscript
        style2 = unorderedlist, orderedlist, indent
        links = link
        undo = undo
        

      5. Go somewhere that has an atto editor and check the JavaScript console.
      6. Test that you do not see the following error: Uncaught TypeError: this.textarea.simulate is not a function
      Show
      Download and install the essential theme (theme_essential) from the plugin database. Change over to use the essential theme [Site administration  ► Appearance  ► Themes  ► Theme selector] . Uninstall the equation plugin from atto. Go to the atto toolbar settings. [Site administration  ► Plugins  ► Text editors  ► Atto HTML editor  ► Atto toolbar settings] Uninstall the equation editor. Make sure to remove the equation editor directory. lib/editor/atto/plugins/equation/ Edit the Toolbar config to be the following: style1 = bold, italic, underline, subscript, superscript style2 = unorderedlist, orderedlist, indent links = link undo = undo Go somewhere that has an atto editor and check the JavaScript console. Test that you do not see the following error: Uncaught TypeError: this.textarea.simulate is not a function

    Description

      With a Moodle site that uses atto as the editor.

      Go to Plugins > Text editor > Atto HTML editor > Atto toolbar settings

      Go to toolbar config, find the equation plugin and delete it.

      Go to a form that uses the editor (Front page > Front page settings > Front page summary for example) and type in the editor. In Chrome you will see the error Uncaught TypeError: this.textarea.simulate is not a function

      Assume this is because one of the YUI libraries (node-event-simulate?) is not getting loaded if equation isn't being used.

      Attachments

        Activity

          People

            anthonyforth Anthony Forth
            anthonyforth Anthony Forth
            Adrian Greeve Adrian Greeve
            David Monllaó David Monllaó
            Ryan Wyllie Ryan Wyllie
            Andrew Lyons, Huong Nguyen, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              12/Sep/16