Skip to content

NOW MANAGED ON CODEBERG

Fixes a corner case with exclamation in the ID.

Abijeet771f781e7faf
diff --git a/resources/assets/js/components/wysiwyg-editor.js b/resources/assets/js/components/wysiwyg-editor.js
index a094359ec..a8a2ff175 100644
--- a/resources/assets/js/components/wysiwyg-editor.js
+++ b/resources/assets/js/components/wysiwyg-editor.js
@@ -501,7 +501,7 @@ class WysiwygEditor {
}
function scrollToText(scrollId) {
- const element = editor.dom.get(scrollId)
+ const element = editor.dom.get(encodeURIComponent(scrollId).replace(/!/g, '%21'));
if (!element) {
return;
}