mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-27 02:51:57 +02:00
Clean up comments and callbacks
This commit is contained in:
@@ -109,23 +109,20 @@ define [
|
||||
metadataManager = new MetadataManager(scope, editor, element, metadata)
|
||||
autoCompleteManager = new AutoCompleteManager(scope, editor, element, metadataManager, graphics, preamble, files)
|
||||
|
||||
# Prevert Ctrl|Cmd-S from triggering save dialog
|
||||
scope.$watch "onSave", (callback) ->
|
||||
if callback?
|
||||
Vim.defineEx 'write', 'w', callback
|
||||
editor.commands.addCommand
|
||||
name: "save",
|
||||
bindKey: win: "Ctrl-S", mac: "Command-S"
|
||||
exec: () ->
|
||||
callback()
|
||||
exec: callback
|
||||
readOnly: true
|
||||
# Not technically 'save', but Ctrl-. recompiles in OL v1
|
||||
# so maintain compatibility
|
||||
editor.commands.addCommand
|
||||
name: "recompile_v1",
|
||||
bindKey: win: "Ctrl-.", mac: "Ctrl-."
|
||||
exec: () ->
|
||||
callback()
|
||||
exec: callback
|
||||
readOnly: true
|
||||
editor.commands.removeCommand "transposeletters"
|
||||
editor.commands.removeCommand "showSettingsMenu"
|
||||
|
||||
Reference in New Issue
Block a user