mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-27 11:01:56 +02:00
* Store editor selection on a per-user rather than per-project basis * set code editor if rich_text=false * format fix GitOrigin-RevId: 8efc33b682de211162e674839e6b891ec04e542e
12 lines
286 B
JavaScript
12 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')
|
|
})
|
|
},
|
|
])
|