From 2c036cb3b6cdc399e875326d5eb235e326e19863 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Fri, 5 May 2023 11:58:26 +0200 Subject: [PATCH] Unwrap `
` contained in `` --- ts/WoltLabSuite/Core/Component/Ckeditor/Cleanup.ts | 1 + .../files/js/WoltLabSuite/Core/Component/Ckeditor/Cleanup.js | 1 + .../files/lib/system/html/output/node/HtmlOutputNodeBr.class.php | 1 + 3 files changed, 3 insertions(+) diff --git a/ts/WoltLabSuite/Core/Component/Ckeditor/Cleanup.ts b/ts/WoltLabSuite/Core/Component/Ckeditor/Cleanup.ts index 6ed22489e2..3add48d75d 100644 --- a/ts/WoltLabSuite/Core/Component/Ckeditor/Cleanup.ts +++ b/ts/WoltLabSuite/Core/Component/Ckeditor/Cleanup.ts @@ -23,6 +23,7 @@ function unwrapBr(div: HTMLElement): void { while ((parent = parent.parentElement) !== null) { switch (parent.tagName) { case "B": + case "DEL": case "EM": case "I": case "STRONG": diff --git a/wcfsetup/install/files/js/WoltLabSuite/Core/Component/Ckeditor/Cleanup.js b/wcfsetup/install/files/js/WoltLabSuite/Core/Component/Ckeditor/Cleanup.js index aff6a7c7ae..16c2e9e2fb 100644 --- a/wcfsetup/install/files/js/WoltLabSuite/Core/Component/Ckeditor/Cleanup.js +++ b/wcfsetup/install/files/js/WoltLabSuite/Core/Component/Ckeditor/Cleanup.js @@ -24,6 +24,7 @@ define(["require", "exports", "tslib", "../../Dom/Util"], function (require, exp while ((parent = parent.parentElement) !== null) { switch (parent.tagName) { case "B": + case "DEL": case "EM": case "I": case "STRONG": diff --git a/wcfsetup/install/files/lib/system/html/output/node/HtmlOutputNodeBr.class.php b/wcfsetup/install/files/lib/system/html/output/node/HtmlOutputNodeBr.class.php index 2afc6bec9a..2e8238b03a 100644 --- a/wcfsetup/install/files/lib/system/html/output/node/HtmlOutputNodeBr.class.php +++ b/wcfsetup/install/files/lib/system/html/output/node/HtmlOutputNodeBr.class.php @@ -44,6 +44,7 @@ final class HtmlOutputNodeBr extends AbstractHtmlOutputNode while (($parent = $parent->parentNode) !== null) { switch ($parent->nodeName) { case "b": + case "del": case "em": case "i": case "strong": -- 2.20.1