diff --git a/package.json b/package.json index 7c78840..7da0fc6 100644 --- a/package.json +++ b/package.json @@ -7,6 +7,9 @@ }, "dependencies": { "@icelab/defo": "^0.0.3", + "@milkdown/crepe": "^7.5.7", + "@milkdown/kit": "^7.5.5", + "@milkdown/theme-nord": "^7.5.0", "hanami-assets": "github:hanami/assets-js#main", "typescript": "^5.2.2" }, diff --git a/slices/admin/assets/js/app.ts b/slices/admin/assets/js/app.ts index 87ba18f..4e73b22 100644 --- a/slices/admin/assets/js/app.ts +++ b/slices/admin/assets/js/app.ts @@ -5,6 +5,10 @@ import "../css/app.css"; import { Crepe } from "@milkdown/crepe"; import { listener, listenerCtx } from "@milkdown/kit/plugin/listener"; +import "@milkdown/crepe/theme/common/style.css"; + +// We have some themes for you to choose +import "@milkdown/crepe/theme/frame.css"; async function uploadImage(file: File) { const formData = new FormData();