Skip to content

Build your personal knowledge base with Trilium Notes

demo: Add dev tools

Tony Narlock6d00e3bdb590
diff --git a/demo/app.js b/demo/app.js
index 2da7405b7d..398ecb3fdb 100644
--- a/demo/app.js
+++ b/demo/app.js
@@ -3,6 +3,7 @@ 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 CKEditorInspector from '@ckeditor/ckeditor5-inspector';
import Math from "../src/math";
@@ -13,6 +14,7 @@ ClassicEditor.create(document.querySelector("#editor"), {
})
.then((editor) => {
console.log("Editor was initialized", editor);
+ CKEditorInspector.attach(editor)
})
.catch((error) => {
console.error(error.stack);
diff --git a/package.json b/package.json
index 89b3afdd08..c6dc005979 100644
--- a/package.json
+++ b/package.json
@@ -14,6 +14,7 @@
"@ckeditor/ckeditor5-clipboard": "^27.1.0",
"@ckeditor/ckeditor5-core": "^27.1.0",
"@ckeditor/ckeditor5-engine": "^27.1.0",
+ "@ckeditor/ckeditor5-inspector": "^2.2.2",
"@ckeditor/ckeditor5-ui": "^27.1.0",
"@ckeditor/ckeditor5-undo": "^27.1.0",
"@ckeditor/ckeditor5-utils": "^27.1.0",