debian-mirror-gitlab/app/assets/javascripts/blob/utils.js

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

17 lines
287 B
JavaScript
Raw Normal View History

2021-09-30 23:02:18 +05:30
import Editor from '~/editor/source_editor';
2020-04-08 14:13:33 +05:30
2021-09-30 23:02:18 +05:30
export function initSourceEditor({ el, ...args }) {
2020-10-24 23:57:45 +05:30
const editor = new Editor({
scrollbar: {
alwaysConsumeMouseWheel: false,
},
});
2020-11-24 15:15:51 +05:30
return editor.createInstance({
2020-05-24 23:13:21 +05:30
el,
2020-10-24 23:57:45 +05:30
...args,
2020-05-24 23:13:21 +05:30
});
2020-04-08 14:13:33 +05:30
}
export default () => ({});