Fixes a corner case with exclamation in the ID.

Signed-off-by: Abijeet <abijeetpatro@gmail.com>
This commit is contained in:
Abijeet
2018-06-10 17:29:30 +05:30
parent 78be8535f7
commit 771f781e7f

View File

@ -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;
} }