Commit 344c3448 authored by Curtis Adam's avatar Curtis Adam

Disable markdeep iframe borders and allow users to set the iframe width

parent 7e17fc00
......@@ -21,6 +21,14 @@ export function setLightBoxes(content) {
return $('<div/>').append(element).html();
}
export function adjustIframe(content) {
let element = $(content);
$(element).find('iframe').each(function () {
$(this).attr('frameBorder', 0);
});
return $('<div/>').append(element).html();
}
export function displayMediaControls(content) {
let element = $(content);
$(element).find('video').each(function () {
......
......@@ -677,6 +677,7 @@ const helper = new MeteorMathJax.Helper({
x = DOMPurify.sanitize(x, DOMPurifyConfig);
x = lib.setLightBoxes(x);
x = lib.displayMediaControls(x);
x = lib.adjustIframe(x);
CardVisuals.setTextZoom();
return lib.setLinkTarget(x);
}
......
......@@ -112,10 +112,6 @@
margin-left: 40px;
}
iframe {
width: 100% !important;
}
a {
font-family: unset;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment