blob: a0211c8bb8e585afbb8cea3ec29635d1a2f7d14c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
import Editor from '~/editor/editor_lite';
export function initEditorLite({ el, ...args }) {
if (!el) {
throw new Error(`"el" parameter is required to initialize Editor`);
}
const editor = new Editor({
scrollbar: {
alwaysConsumeMouseWheel: false,
},
});
editor.createInstance({
el,
...args,
});
return editor;
}
export default () => ({});
|