Hopefully one we can actually use across projects.
This project is under construction. DO NOT USE THIS.
A future API might look like this:
pnpm add @farbenmeer/editor
import { Editor, imagePlugin } from "@farbenmeer/editor"
<Editor plugins={[imagePlugin]} onChange={(content) => doStuffWith(content)} />
Three commands so far:
pnpm i
to install dependencies.
pnpm build
(which just runs tsc
) to build a production build.
Output ends up in the dist
folder.
pnpm dev
(which runs next dev
for the example project in the app-folder)
For now all styles go into editor.css
and we just use plain CSS with no magic.