2020-03-09 05:07:45 -04:00
|
|
|
import Editor from '~/editor/editor_lite';
|
|
|
|
|
|
|
|
export function initEditorLite({ el, blobPath, blobContent }) {
|
|
|
|
if (!el) {
|
|
|
|
throw new Error(`"el" parameter is required to initialize Editor`);
|
|
|
|
}
|
2020-05-06 05:10:02 -04:00
|
|
|
const editor = new Editor();
|
|
|
|
editor.createInstance({
|
|
|
|
el,
|
|
|
|
blobPath,
|
|
|
|
blobContent,
|
|
|
|
});
|
2020-03-09 05:07:45 -04:00
|
|
|
|
|
|
|
return editor;
|
|
|
|
}
|
|
|
|
|
|
|
|
export default () => ({});
|