fix: Scroll to header does not work when header contains Chinese characters

This commit is contained in:
Tom Moor
2022-09-22 09:59:31 -04:00
parent 4f40c64101
commit 61154ba618

View File

@@ -106,7 +106,7 @@ function DocumentEditor(props: Props, ref: React.RefObject<any>) {
ref={ref}
autoFocus={!!document.title && !props.defaultValue}
placeholder={t("Type '/' to insert, or start writing…")}
scrollTo={window.location.hash}
scrollTo={decodeURIComponent(window.location.hash)}
readOnly={readOnly}
shareId={shareId}
extensions={fullPackage}