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

Atto: Event atto:selectionchanged is fired on each editor

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 2.7
    • Fix Version/s: 2.7
    • Component/s: HTML Editor (Atto)
    • Labels:
    • Testing Instructions:
      Hide
      1. Open a page with a few editors
      2. Make a selection in each of them (Select a word in an editor, straight select another word in another editor)
      3. In one, make a text bold
      4. Make sure other editors are not affected
      5. Test the undo process, make sure the undo are bound to an editor, and would not clash with others
      6. Check the description of this issue, and add the code to the initializer method of a plugin (that is in the toolbar), don't forget to run shifter
      7. Refresh the page with multiple editors
      8. Make sure each change returns the ID of the editor in which the changes happened
      Show
      Open a page with a few editors Make a selection in each of them (Select a word in an editor, straight select another word in another editor) In one, make a text bold Make sure other editors are not affected Test the undo process, make sure the undo are bound to an editor, and would not clash with others Check the description of this issue, and add the code to the initializer method of a plugin (that is in the toolbar), don't forget to run shifter Refresh the page with multiple editors Make sure each change returns the ID of the editor in which the changes happened
    • Affected Branches:
      MOODLE_27_STABLE
    • Fixed Branches:
      MOODLE_27_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      MDL-44834-master
    • Sprint:
      FRONTEND Sprint 11

      Description

      To reproduce, add this to the initializer function of any plugin.

              this.get('host').on('atto:selectionchanged', function() {
                      console.log(this.editor.get('id'));
                  }
                  , this);
      

      Each editor receives the event triggered from one.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              fred Frédéric Massart
              Reporter:
              fred Frédéric Massart
              Peer reviewer:
              Damyon Wiese
              Integrator:
              Sam Hemelryk
              Tester:
              Ankit Agarwal
              Participants:
              Component watchers:
              Andrew Nicols, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                12/May/14