]>
BookStack Code Mirror - bookstack/commitdiff
projects
/
bookstack
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
| inline |
side by side
(parent:
78be853
)
Fixes a corner case with exclamation in the ID.
875/head
author
Abijeet
<redacted>
Sun, 10 Jun 2018 11:59:30 +0000
(17:29 +0530)
committer
Abijeet
<redacted>
Sun, 10 Jun 2018 11:59:30 +0000
(17:29 +0530)
Signed-off-by: Abijeet <redacted>
resources/assets/js/components/wysiwyg-editor.js
patch
|
blob
|
history
diff --git
a/resources/assets/js/components/wysiwyg-editor.js
b/resources/assets/js/components/wysiwyg-editor.js
index a094359eced82de020133117046184ab0d7f4ba7..a8a2ff175ed0c732b38cbe06be3fa394031c4694 100644
(file)
--- 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;
}