Skip to content

Commit 5b25698

Browse files
BurntimeXdtdesign
authored andcommitted
Fix broken inner error in WYSIWYG form field
1 parent dab1070 commit 5b25698

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

com.woltlab.wcf/templates/shared_wysiwyg.tpl

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,11 @@
1414
1515
document.querySelector('link[rel="stylesheet"]').before(stylesheet);
1616
}
17+
18+
// Immediately remove the script from the DOM. This prevents any selectors
19+
// from breaking that target the immediate sibling of the editor element.
20+
// Furthermore, removing it makes no difference in terms of the functionality.
21+
document.currentScript.remove();
1722
}
1823
</script>
1924
<script data-relocate="true">

0 commit comments

Comments
 (0)