debian-mirror-gitlab/app/assets/javascripts/blob/utils.js
2020-11-24 15:15:51 +05:30

16 lines
283 B
JavaScript

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