Skip to content

Commit

Permalink
feat: #653 增加新的配置开关,打开后cherry完成初始化后会根据hash进行 滚动定位 在demo里默认打开
Browse files Browse the repository at this point in the history
  • Loading branch information
sunsonliu committed Nov 21, 2023
1 parent 50bc19d commit 029f3d2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion examples/scripts/index-demo.js
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,9 @@ var basicConfig = {
id: 'cherry-text',
name: 'cherry-text',
autoSave2Textarea: true,
}
},
// cherry初始化后是否检查 location.hash 尝试滚动到对应位置
autoScrollByHashAfterInit: true,
};

fetch('./markdown/basic.md').then((response) => response.text()).then((value) => {
Expand Down

0 comments on commit 029f3d2

Please sign in to comment.