From d1dfa7757843f038287fae97f0d3e2d30b0095ba Mon Sep 17 00:00:00 2001 From: Henrik Giesel Date: Tue, 17 May 2022 08:37:20 +0200 Subject: [PATCH] Allow style tags in HTML editor (#1870) --- ts/editor/plain-text-input/remove-prohibited.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ts/editor/plain-text-input/remove-prohibited.ts b/ts/editor/plain-text-input/remove-prohibited.ts index c60663cd0..27b5925d8 100644 --- a/ts/editor/plain-text-input/remove-prohibited.ts +++ b/ts/editor/plain-text-input/remove-prohibited.ts @@ -11,7 +11,7 @@ function removeTag(element: HTMLElement, tagName: string): void { } } -const prohibitedTags = ["script", "link", "style"]; +const prohibitedTags = ["script", "link"]; /** * The use cases for using those tags in the field html are slim to none.