debian-mirror-gitlab/app/assets/javascripts/blob/utils.js
2021-09-30 23:02:18 +05:30

16 lines
287 B
JavaScript

import Editor from '~/editor/source_editor';
export function initSourceEditor({ el, ...args }) {
const editor = new Editor({
scrollbar: {
alwaysConsumeMouseWheel: false,
},
});
return editor.createInstance({
el,
...args,
});
}
export default () => ({});