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