Files
enlight-lms/lms/public/js/editor.js
2023-04-27 10:20:50 +05:30

20 lines
382 B
JavaScript

import EditorJS from "@editorjs/editorjs";
import Header from "@editorjs/header";
import List from "@editorjs/list";
let self = this;
const create_editor_for_lesson_content = () => {
self.editor = new EditorJS({
holder: "lesson-content",
tools: {
header: {
class: Header,
},
list: List,
},
});
};
create_editor_for_lesson_content();
console.log(self.editor);