mirror of
https://github.com/overleaf/overleaf.git
synced 2024-12-02 05:59:14 -05:00
da2f7ff153
* Store editor selection on a per-user rather than per-project basis * set code editor if rich_text=false * format fix GitOrigin-RevId: 8efc33b682de211162e674839e6b891ec04e542e
11 lines
286 B
JavaScript
11 lines
286 B
JavaScript
import App from '../../base'
|
|
|
|
App.controller('EditorLoaderController', [
|
|
'$scope',
|
|
'localStorage',
|
|
function ($scope, localStorage) {
|
|
$scope.$watch('editor.showVisual', function (val) {
|
|
localStorage(`editor.lastUsedMode`, val === true ? 'visual' : 'code')
|
|
})
|
|
},
|
|
])
|