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:
@@ -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']
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user