From 89db879fa0b8de4fc4aade2a2c71fe47993be335 Mon Sep 17 00:00:00 2001 From: BURNING <102145525+burningxxx@users.noreply.github.com> Date: Fri, 12 Apr 2024 23:19:45 +0700 Subject: [PATCH 1/2] Save style attribute to keep image positioning --- packages/quill/src/formats/image.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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'; From 7b815f08bbd24f7fe896a37168d8329fc9a9a99d Mon Sep 17 00:00:00 2001 From: BURNING <102145525+burningxxx@users.noreply.github.com> Date: Mon, 15 Apr 2024 14:48:51 +0700 Subject: [PATCH 2/2] Save style attribute to keep video positioning --- packages/quill/src/formats/video.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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';