fix: Scroll to header does not work when header contains Chinese characters
This commit is contained in:
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user