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

HTMLPurifier strips display:block from images centered by TinyMCE

    Details

    • Workaround:
      Hide

      See patch attached.

      Show
      See patch attached.
    • Affected Branches:
      MOODLE_21_STABLE

      Description

      It 'bug' affects glossary, but doesn't affect (web)pages or labels.

      An image inserted and centred by TinyMCE, POSTed to server:

      <p><img style="display: block; margin: auto;"
      src="http://dl.spbstu.ru/draftfile.php/13/user/draft/144307466/%D0%BE%D1%81%D0%B8.jpg"
      alt="" width="449" height="321" /></p>

      That image showed:

      <p><img style="margin: auto;"
      src="http://dl.spbstu.ru/draftfile.php/13/user/draft/144307466/%D0%BE%D1%81%D0%B8.jpg"
      alt="" width="449" height="321" /></p>

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

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

                  Dates

                  • Created:
                    Updated:
                    Resolved: