diff --git a/packages/quill/src/formats/image.ts b/packages/quill/src/formats/image.ts index e68f56a0b3..97894fbace 100644 --- a/packages/quill/src/formats/image.ts +++ b/packages/quill/src/formats/image.ts @@ -1,7 +1,7 @@ import { EmbedBlot } from 'parchment'; import { sanitize } from './link.js'; -const ATTRIBUTES = ['alt', 'height', 'width']; +const ATTRIBUTES = ['alt', 'height', 'width', 'style']; class Image extends EmbedBlot { static blotName = 'image'; diff --git a/packages/quill/src/formats/video.ts b/packages/quill/src/formats/video.ts index 84d4bb15cf..bb8853a695 100644 --- a/packages/quill/src/formats/video.ts +++ b/packages/quill/src/formats/video.ts @@ -1,7 +1,7 @@ import { BlockEmbed } from '../blots/block.js'; import Link from './link.js'; -const ATTRIBUTES = ['height', 'width']; +const ATTRIBUTES = ['height', 'width', 'style']; class Video extends BlockEmbed { static blotName = 'video';