1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-14 10:16:26 +00:00

Allow iframe size, allow fullscreen

This commit is contained in:
Sander Steenhuis
2018-03-04 17:49:17 +01:00
parent 9344fd78d8
commit c22b7f81c1

View File

@@ -52,8 +52,8 @@ md.use(sanitize, {
allowedTags: ['img', 'iframe'], allowedTags: ['img', 'iframe'],
allowedAttributes: { allowedAttributes: {
'*': ['alt', 'style'], '*': ['alt', 'style'],
'img': ['src', 'height', 'width'], 'img': ['src', 'width', 'height'],
'iframe': ['src'] 'iframe': ['src', 'width', 'height', 'frameborder', 'allowfullscreen']
}, },
allowedIframeHostnames: ['www.youtube.com'] allowedIframeHostnames: ['www.youtube.com']
}) })