Skip to content

hoanggbao00/Novel-Editor-Example

Repository files navigation

Novel Editor Example

Table of Contents

Repository
Disclaimer
Removed Feature
Usage

Repository

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


Disclaimer

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.


Removed Feature

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

Usage

  1. Star this repo
  2. Install all package in package.json
npm install
  1. Clone this repository
git clone https://github.com/hoanggbao00/Novel-Editor-Example.git
  1. Add following Shadcn UI components: Button, Command, Dialog, Popover, Separator, Sonner
  2. Copy components/editor and components/ui in components to your project
  3. Copy prosemirror.css and import it to your project
  4. Copy default content lib/content.ts to your lib folder
  5. Add and Import Editor component to your page
<TailwindAdvancedEditor />

About

Example of Novel Editor from v0.3

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published