debian-mirror-gitlab/app/assets/javascripts/ide/lib/editor_options.js

17 lines
260 B
JavaScript
Raw Normal View History

2018-05-09 12:01:36 +05:30
export const defaultEditorOptions = {
model: null,
readOnly: false,
contextmenu: true,
scrollBeyondLastLine: false,
minimap: {
enabled: false,
},
wordWrap: 'on',
};
export default [
{
readOnly: model => !!model.file.file_lock,
},
];