Repository
Disclaimer
Removed Feature
Usage
Github: novel
Author: Steven Tey
Source Reference: (novel/apps/web)
Version: 0.3
Please star this repo on GitHub and Support the Author Steven Tey
Because of from version 0.20 and above, they being a breaking release no longer export a single component.
It become harder than 0.1 to setup in my graduate project.
I upload this to the purpose of reuseable, and for anyone who got stuck on new version like me.
Image Support in Editor in extensions.ts
<- This is required to use Image
/Slash add Image in slash-command.tsx
Drag and Drop Image in advanced-editor.tsx
You can find Feature: Image in Editor
in global search(Ctrl+Shift+F in VSCode) to find faster
- Star this repo
- Install all package in
package.json
npm install
- Clone this repository
git clone https://github.com/hoanggbao00/Novel-Editor-Example.git
- Add following Shadcn UI components: Button, Command, Dialog, Popover, Separator, Sonner
- Copy
components/editor
andcomponents/ui
in components to your project - Copy
prosemirror.css
and import it to your project - Copy default content
lib/content.ts
to yourlib
folder - Add and Import Editor component to your page
<TailwindAdvancedEditor />