AnsweredAssumed Answered

Keep Canvas text editor from rewriting scripting or other code inserted via 'HTML' mode?

Question asked by Juan Leon on Jul 26, 2019
Latest reply on Jul 26, 2019 by Juan Leon

When I add scripting to a page in Canvas via the text editor in HTML mode that code appears to have been changed by Canvas the next time I visit the page and examine the code in HTML mode.  For example, 

<iframe style="width: 100%; height: 1420px; overflow: hidden" src="https://jefferson.instructure.com/courses/110/files/7104/file_preview?annotate=0" scrolling="yes">
</iframe>

BECOMES:

<p><iframe style="width: 100%; height: 1420px; overflow: hidden;" src="https://jefferson.instructure.com/courses/110/files/7104/download" data-api-endpoint="https://jefferson.instructure.com/api/v1/courses/110/files/7104" data-api-returntype="File"></iframe></p>

How can I eliminate or minimize this behavior?

Outcomes