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

Atto doesn't add <p></p> tags after deleting all the text of textarea

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Reopened
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 2.9.4, 3.0
    • Fix Version/s: None
    • Component/s: HTML Editor (Atto)
    • Labels:
    • Testing Instructions:
      Hide

      Test the following in all supported browsers.

      1. Create an resource which uses the editor, e.g. a label.
      2. Start typing some text, separating it in distinct lines, pressing return.
      3. At this point, if you go to HTML view, you will notice that every line is wrapped between <p></p> tags.
      4. If you went to HTML view, return to plain text view.
      5. Delete all the text.
      6. Type again some text, separating it again in distinct lines.
      7. Verify the spacing of the lines is as it was in step 2
      8. Check the HTML, verify the lines are wrapped between <p></p> tags.
      Show
      Test the following in all supported browsers. Create an resource which uses the editor, e.g. a label. Start typing some text, separating it in distinct lines, pressing return. At this point, if you go to HTML view, you will notice that every line is wrapped between <p></p> tags. If you went to HTML view, return to plain text view. Delete all the text. Type again some text, separating it again in distinct lines. Verify the spacing of the lines is as it was in step 2 Check the HTML, verify the lines are wrapped between <p></p> tags.
    • Workaround:
      Hide

      Go to HTML and wrap the text manually between <p></p> tags. Now, Atto will wrap properly again the new paragraphs.

      Show
      Go to HTML and wrap the text manually between <p></p> tags. Now, Atto will wrap properly again the new paragraphs.
    • Affected Branches:
      MOODLE_29_STABLE, MOODLE_30_STABLE
    • Pull Master Branch:
      MDL-52944-master

      Description

      When Atto text editor is loaded first, if you start to write and you press return, the editor will wrap the new paragraph between <p></p> tags. This is correct for all the successive paragraphs.

      But, once you've writed something, if you delete all, it won't wrap the new paragraphs between <p></p> tags anymore. Instead of that, Atto will insert <br> every time you press return.

        Attachments

          Activity

            People

            • Votes:
              1 Vote for this issue
              Watchers:
              11 Start watching this issue

              Dates

              • Created:
                Updated: