1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-13 17:56:25 +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'],
allowedAttributes: {
'*': ['alt', 'style'],
'img': ['src', 'height', 'width'],
'iframe': ['src']
'img': ['src', 'width', 'height'],
'iframe': ['src', 'width', 'height', 'frameborder', 'allowfullscreen']
},
allowedIframeHostnames: ['www.youtube.com']
})