mirror of https://github.com/status-im/codimd.git
Fix TOC might not update after changeMode
This commit is contained in:
parent
b6aa045997
commit
4de73477b4
|
@ -1173,6 +1173,9 @@ function changeMode(type) {
|
|||
editor.refresh();
|
||||
}
|
||||
|
||||
$(document.body).scrollspy('refresh');
|
||||
ui.area.view.scrollspy('refresh');
|
||||
|
||||
ui.toolbar.both.removeClass("active");
|
||||
ui.toolbar.edit.removeClass("active");
|
||||
ui.toolbar.view.removeClass("active");
|
||||
|
|
Loading…
Reference in New Issue