Fixes a corner case with exclamation in the ID.
Signed-off-by: Abijeet <abijeetpatro@gmail.com>
This commit is contained in:
parent
78be8535f7
commit
771f781e7f
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue