mirror of
https://github.com/BoostIo/Boostnote
synced 2025-12-13 17:56:25 +00:00
Allow checkbox
This commit is contained in:
@@ -55,11 +55,12 @@ class Markdown {
|
|||||||
|
|
||||||
// Sanitize use rinput before other plugins
|
// Sanitize use rinput before other plugins
|
||||||
this.md.use(sanitize, {
|
this.md.use(sanitize, {
|
||||||
allowedTags: ['img', 'iframe'],
|
allowedTags: ['img', 'iframe', 'input'],
|
||||||
allowedAttributes: {
|
allowedAttributes: {
|
||||||
'*': ['alt', 'style'],
|
'*': ['alt', 'style'],
|
||||||
'img': ['src', 'width', 'height'],
|
'img': ['src', 'width', 'height'],
|
||||||
'iframe': ['src', 'width', 'height', 'frameborder', 'allowfullscreen']
|
'iframe': ['src', 'width', 'height', 'frameborder', 'allowfullscreen'],
|
||||||
|
'input': ['type', 'id', 'checked']
|
||||||
},
|
},
|
||||||
allowedIframeHostnames: ['www.youtube.com']
|
allowedIframeHostnames: ['www.youtube.com']
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user