[Rich Content Editor] Allow inline SVG

The rich content editor strips out inline svg. It would be nice to use svg element which has wide cross browser support. https://caniuse.com/#search=svg

Added to Theme

Technical Functionality Theme Status: Identified

5 Comments
Stef_retired
Instructure Alumni
Instructure Alumni
Status changed to: Open
 
danaleeling
Community Participant

Although perhaps a niche use, this capability would benefit those who have materials held in inline HTML5+SVG+MathML. My texts that I developed to support my own courses are composed in HTML5+SVG+MathML. I can use the RCE HTML view to copy and paste my own materials retaining the HTML and the MathML thanks to the integration of the MathJax library. The SVG, however, is stripped out except for the stub <svg> tag. There is a work around that involves copying out the SVg code and turning that into a stand alone SVG image which is then uploaded as an image and stored as file in Canvas, but this process would be rendered unnecessary by allowing inline SVG in Canvas pages. For those who are curious I have documented the process I am now using at:
https://www.youtube.com/watch?v=5x9a7wYTSp8

Inline SVG would allow direct editing and maintaining of the SVG code in the HTML view of the RCE, which is a primary reason I use SVG diagrams in my texts.

SomeHandyGuy
Community Explorer

svg is part of the HTML5 web standard. There is no reason for not allowing or supporting it.

I have hundreds of question in question banks with dynamically created svg graphics for graphs, diagrams, etc. with some questions featuring multiple graphics. It is not possible for me to convert all of them to separate files, upload them separately to Canvas and correctly link them to the right questions.

At the very least, allow us to embed an svg tag into something Canvas can handle. Like an embed,  canvas, iframe tag or maybe "<img src=data&colon;image/svg+xml..." or anything that doesn't require a separate file.

KristinL
Community Team
Community Team
Status changed to: New
 
KristinL
Community Team
Community Team
Status changed to: Added to Theme