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

The bold/italics buttons don't maintain their selection when pressed

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.7
    • Fix Version/s: 2.7
    • Component/s: HTML Editor (Atto)
    • Labels:
    • Testing Instructions:
      Hide
      1. In Atto, write "I hate two-hour problems that turn out to be two-line fixes."
      2. Select the word "problems" and press the bold button.
        • Verify that the word is formatted bold and the selection remains on "problems".
      3. With the selection remaining on "problems", press CTRL+B.
        • Verify that the word loses its bold formatting and the selection remains on "problems".
      4. Select the entire sentence.
      5. Use SHIFT+TAB to put focus into the toolbar.
      6. Use left and right arrow keys to select the indent button, then hit space.
        • Verify that the sentence is indented and remains selected.
      7. Select the word "fixes" and press CTRL+I.
        • Verify that the word is formatted italic and the selection remains on "fixes".
      8. With the selection remaining on "fixes", press the italic button.
        • Verify that the word loses its italic formatting and the selection remains on "fixes".
      Show
      In Atto, write "I hate two-hour problems that turn out to be two-line fixes." Select the word "problems" and press the bold button. Verify that the word is formatted bold and the selection remains on "problems". With the selection remaining on "problems", press CTRL+B. Verify that the word loses its bold formatting and the selection remains on "problems". Select the entire sentence. Use SHIFT+TAB to put focus into the toolbar. Use left and right arrow keys to select the indent button, then hit space. Verify that the sentence is indented and remains selected. Select the word "fixes" and press CTRL+I. Verify that the word is formatted italic and the selection remains on "fixes". With the selection remaining on "fixes", press the italic button. Verify that the word loses its italic formatting and the selection remains on "fixes".
    • Affected Branches:
      MOODLE_27_STABLE
    • Fixed Branches:
      MOODLE_27_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      MDL-44810-master
    • Story Points:
      5
    • Sprint:
      FRONTEND Sprint 11

      Description

      Steps to reproduce:

      1. In atto, write "Damo Rulez"
      2. Select the word "Damo" word and press bold button

      Expected result:
      The word "Damo" is formatted bold and the selection remains on "Damo"

      Actual result:
      The word "Damo" is formatted bold but the selection is not retained and the insertion point moves to the end of the word.

      NOTE: this is contrasting behaviour to google docs for eg. (and I guess MS Word etc)

        Attachments

          Activity

            People

            Assignee:
            jethac Jetha Chan
            Reporter:
            poltawski Dan Poltawski
            Peer reviewer:
            Andrew Lyons Andrew Lyons
            Integrator:
            Dan Poltawski Dan Poltawski
            Tester:
            Mark Nelson Mark Nelson
            Participants:
            Component watchers:
            Andrew Lyons, Dongsheng Cai, 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:
              Fix Release Date:
              12/May/14