mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-14 07:04:45 -04:00
Fix syncscroll.js and index.js have circular dependency cause Reference Errors
This commit is contained in:
parent
b7200d7910
commit
38b1477736
2 changed files with 26 additions and 14 deletions
|
@ -924,6 +924,8 @@ $(window).on('error', function () {
|
|||
//setNeedRefresh();
|
||||
});
|
||||
|
||||
setupSyncAreas(ui.area.codemirrorScroll, ui.area.view, ui.area.markdown);
|
||||
|
||||
function autoSyncscroll() {
|
||||
if (editorHasFocus()) {
|
||||
syncScrollToView();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue