mirror of
https://github.com/zadam/trilium.git
synced 2025-11-06 21:36:05 +01:00
Demo: Live server / dev loop
This commit is contained in:
19
demo/app.js
Normal file
19
demo/app.js
Normal file
@@ -0,0 +1,19 @@
|
||||
import ClassicEditor from "@ckeditor/ckeditor5-editor-classic/src/classiceditor";
|
||||
import Essentials from "@ckeditor/ckeditor5-essentials/src/essentials";
|
||||
import Paragraph from "@ckeditor/ckeditor5-paragraph/src/paragraph";
|
||||
import Bold from "@ckeditor/ckeditor5-basic-styles/src/bold";
|
||||
import Italic from "@ckeditor/ckeditor5-basic-styles/src/italic";
|
||||
|
||||
import Math from "../src/math";
|
||||
|
||||
ClassicEditor.create(document.querySelector("#editor"), {
|
||||
plugins: [Essentials, Paragraph, Bold, Italic, Math],
|
||||
toolbar: ["bold", "italic", "math"],
|
||||
math: { engine: "katex" },
|
||||
})
|
||||
.then((editor) => {
|
||||
console.log("Editor was initialized", editor);
|
||||
})
|
||||
.catch((error) => {
|
||||
console.error(error.stack);
|
||||
});
|
||||
Reference in New Issue
Block a user