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

Notify editors about h1, h2 usage and automatic conversion happening

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Won't Fix
    • Affects Version/s: 2.9.4
    • Fix Version/s: None
    • Component/s: Accessibility, Wiki (2.x)
    • Labels:
      None
    • Testing Instructions:
      Hide
      1. Create wiki page in creole format with several headers
      2. Make sure headers are displayed as <h3> and below, TOC and section edit links work
      3. Repeat in nwiki format
      4. Create wiki page in html format using Atto, insert headers of different levels
      5. Make sure headers are displayed as entered and TOC and section edit links work
      6. Create wiki page in html format using TinyMCE, insert headers of different levels
      7. Make sure you get a warning when saving (only if you used h1 or h2) and the headings levels are properly adjusted (h1->h3; h2->h4; h3->h5; h4, h5, h6 -> h6), make sure TOC and section edit links work
      Show
      Create wiki page in creole format with several headers Make sure headers are displayed as <h3> and below, TOC and section edit links work Repeat in nwiki format Create wiki page in html format using Atto, insert headers of different levels Make sure headers are displayed as entered and TOC and section edit links work Create wiki page in html format using TinyMCE, insert headers of different levels Make sure you get a warning when saving (only if you used h1 or h2) and the headings levels are properly adjusted (h1->h3; h2->h4; h3->h5; h4, h5, h6 -> h6), make sure TOC and section edit links work
    • Affected Branches:
      MOODLE_29_STABLE
    • Pull Master Branch:
      MDL-53055-master

      Description

      Follow up for MDL-49807:

      • When creating wiki pages in creole format treat =header= as <h3>, ==subheader== as <h4>, etc.
      • When creating wiki pages in tinymce (or plain text editor) and user used <h1> or <h2> warn user on save that these levels are not allowed and automatically convert them to <h3> and lower during display.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: