mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-05-31 04:55:50 +08:00
Fixes a corner case with exclamation in the ID.
Signed-off-by: Abijeet <abijeetpatro@gmail.com>
This commit is contained in:
@ -501,7 +501,7 @@ class WysiwygEditor {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function scrollToText(scrollId) {
|
function scrollToText(scrollId) {
|
||||||
const element = editor.dom.get(scrollId)
|
const element = editor.dom.get(encodeURIComponent(scrollId).replace(/!/g, '%21'));
|
||||||
if (!element) {
|
if (!element) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user