Skip to content

farbenmeer's custom rich text editor based on slate

Notifications You must be signed in to change notification settings

farbenmeer/editor

Repository files navigation

@farbenmeer/editor

Hopefully one we can actually use across projects.

Usage

This project is under construction. DO NOT USE THIS.

A future API might look like this:

Setup

pnpm add @farbenmeer/editor
import { Editor, imagePlugin } from "@farbenmeer/editor"

<Editor plugins={[imagePlugin]} onChange={(content) => doStuffWith(content)} />

Development

Setup

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)

Styling

For now all styles go into editor.css and we just use plain CSS with no magic.

About

farbenmeer's custom rich text editor based on slate

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published