From bd00c3b27115685246cd7409d6872b5ceb7efbf6 Mon Sep 17 00:00:00 2001 From: Muhammad Arslan Date: Fri, 7 Nov 2025 22:42:32 +0500 Subject: [PATCH] fix: self-closing script tag fixed for TinyMceEditor (#2608) (backport) --- src/editors/sharedComponents/TinyMceWidget/hooks.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/editors/sharedComponents/TinyMceWidget/hooks.ts b/src/editors/sharedComponents/TinyMceWidget/hooks.ts index f89f1320a..4355855f9 100644 --- a/src/editors/sharedComponents/TinyMceWidget/hooks.ts +++ b/src/editors/sharedComponents/TinyMceWidget/hooks.ts @@ -457,6 +457,9 @@ export const editorConfig = ({ valid_elements: '*[*]', // FIXME: this is passing 'utf-8', which is not a valid entity_encoding value. It should be 'named' etc. entity_encoding: 'utf-8' as any, + // Protect self-closing