Uploaded image for project: 'Sakai'
  1. Sakai
  2. SAK-39760

Allow role=math attribute for img tag for WIRIS formulas

    XMLWordPrintable

    Details

    • Type: Task
    • Status: CLOSED
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 11.2
    • Fix Version/s: 11.4, 12.0
    • Component/s: Kernel
    • Labels:
    • Test Plan:
      Hide
      • Go to add content in a site with CKEditor
      • Click source and add the text

      <img align="middle" alt="square root of 5555" class="Wirisformula" data-mathml="(some mathml)" role="math" src="/pluginwiris_engine/app/showimage?formula=bf57cf5ace9b1e530d7221ee512cb429" />

      Save, it should save without errors and when editing again the source should be the same (still containing the role=math attribute.

      Show
      Go to add content in a site with CKEditor Click source and add the text <img align="middle" alt="square root of 5555" class="Wirisformula" data-mathml="(some mathml)" role="math" src="/pluginwiris_engine/app/showimage?formula=bf57cf5ace9b1e530d7221ee512cb429" /> Save, it should save without errors and when editing again the source should be the same (still containing the role=math attribute.
    • 11 status:
      Resolved

      Description

      The WIRIS formula editor (www.wiris.net) inserts markup like

      <img align="middle" alt="square root of 5555" class="Wirisformula" data-mathml="(some mathml)" role="math" src="/pluginwiris_engine/app/showimage?formula=bf57cf5ace9b1e530d7221ee512cb429" />

      Antisamy objects to the role="math" attribute so you get the yellow popup warning.

      We should allow this attribute in the high and low antisamy policy files by default.

        Gliffy Diagrams

          Zeplin

            Attachments

              Activity

                People

                • Assignee:
                  jonespm Matthew Jones
                  Reporter:
                  smarquard Stephen Marquard
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  3 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:

                    Git Integration