gitlab-org--gitlab-foss/app/assets/javascripts/blob/utils.js

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 () => ({});