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

Atto: Event atto:selectionchanged is fired on each editor

XMLWordPrintable

    • MOODLE_27_STABLE
    • MOODLE_27_STABLE
    • MDL-44834-master
    • 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
    • FRONTEND Sprint 11

      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.

            fred Frédéric Massart
            fred Frédéric Massart
            Damyon Wiese Damyon Wiese
            Sam Hemelryk Sam Hemelryk
            Ankit Agarwal Ankit Agarwal
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

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