mirror of
https://github.com/chillpadclub/bedolaga-cabinet.git
synced 2026-07-28 09:33:46 +00:00
fix: isolated DOMPurify instance and correct video controls attribute
- Use DOMPurify(window) to avoid global hook pollution - Fix controls default from boolean to empty string (HTML attribute semantics) - Remove redundant non-null assertion on featured_image_url
This commit is contained in:
@@ -14,7 +14,7 @@ export const VideoExtension = Node.create({
|
||||
addAttributes() {
|
||||
return {
|
||||
src: { default: null },
|
||||
controls: { default: true },
|
||||
controls: { default: '' },
|
||||
class: { default: null },
|
||||
preload: { default: 'metadata' },
|
||||
};
|
||||
@@ -25,6 +25,6 @@ export const VideoExtension = Node.create({
|
||||
},
|
||||
|
||||
renderHTML({ HTMLAttributes }) {
|
||||
return ['video', mergeAttributes(HTMLAttributes, { controls: '' })];
|
||||
return ['video', mergeAttributes(HTMLAttributes)];
|
||||
},
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user