Unwrap `<br>` contained in `<del>`
authorAlexander Ebert <ebert@woltlab.com>
Fri, 5 May 2023 09:58:26 +0000 (11:58 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Mon, 8 May 2023 16:34:04 +0000 (18:34 +0200)
ts/WoltLabSuite/Core/Component/Ckeditor/Cleanup.ts
wcfsetup/install/files/js/WoltLabSuite/Core/Component/Ckeditor/Cleanup.js
wcfsetup/install/files/lib/system/html/output/node/HtmlOutputNodeBr.class.php

index 6ed22489e2b160dee20cab579b011847fe7cad94..3add48d75ddfe78f4d54c57e20dfb1936b9e8a8d 100644 (file)
@@ -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":
index aff6a7c7aeee4089b860688218bb5be4c3e7b058..16c2e9e2fb59a4c83fd24020db00e4942efdf752 100644 (file)
@@ -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":
index 2afc6bec9ad367b86e7e66abf91b7d7d5bb6e513..2e8238b03a912705c5efb091672f249b1802d332 100644 (file)
@@ -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":