2020-03-09 09:07:45 +00:00
|
|
|
import Editor from '~/editor/editor_lite';
|
|
|
|
|
2020-08-12 03:10:17 +00:00
|
|
|
export function initEditorLite({ el, ...args }) {
|
2020-08-12 15:10:02 +00:00
|
|
|
const editor = new Editor({
|
|
|
|
scrollbar: {
|
|
|
|
alwaysConsumeMouseWheel: false,
|
|
|
|
},
|
|
|
|
});
|
2020-08-31 18:10:43 +00:00
|
|
|
|
|
|
|
return editor.createInstance({
|
2020-05-06 09:10:02 +00:00
|
|
|
el,
|
2020-08-12 03:10:17 +00:00
|
|
|
...args,
|
2020-05-06 09:10:02 +00:00
|
|
|
});
|
2020-03-09 09:07:45 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
export default () => ({});
|