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

HTMLPurifier strips display:block from images centered by TinyMCE

XMLWordPrintable

    • MOODLE_21_STABLE
    • Hide

      See patch attached.

      Show
      See patch attached.

      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>

            Unassigned Unassigned
            dketov Dmitry Ketov
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

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