From 091c84ed061cc98274bbfceab369c0cf0d07c27b Mon Sep 17 00:00:00 2001 From: Wenzel Jonas Date: Mon, 20 Nov 2023 15:24:41 +0100 Subject: [PATCH] Keep percentage width on images --- src/lib/core.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/core.js b/src/lib/core.js index 0bdc4547..f656af48 100755 --- a/src/lib/core.js +++ b/src/lib/core.js @@ -475,7 +475,7 @@ export default function (context, pluginCallButtons, plugins, lang, options, _re */ _cleanStyleRegExp: { span: new _w.RegExp('\\s*[^-a-zA-Z](font-family|font-size|color|background-color)\\s*:[^;]+(?!;)*', 'ig'), - format: new _w.RegExp('\\s*[^-a-zA-Z](text-align|margin-left|margin-right)\\s*:[^;]+(?!;)*', 'ig'), + format: new _w.RegExp('\\s*[^-a-zA-Z](text-align|margin-left|margin-right|width)\\s*:[^;]+(?!;)*', 'ig'), fontSizeUnit: new _w.RegExp('\\d+' + options.fontSizeUnit + '$', 'i'), },