Workaround foldGutter not showing on first view

This commit is contained in:
Wu Cheng-Han 2015-09-25 18:35:18 +08:00
parent b87463ae0d
commit db956cc298

View file

@ -659,6 +659,9 @@ function changeMode(type) {
addStatusBar();
updateStatusBar();
}
//work around foldGutter might not init properly
editor.setOption('foldGutter', false);
editor.setOption('foldGutter', true);
} else {
ui.toolbar.uploadImage.fadeOut();
}