Git Product home page Git Product logo

tiptap-next's Introduction

Next BlockEditor App

Installation & Usage

To begin, clone the tiptap-templates repository from GitHub using the following command:

git clone [email protected]:ueberdosis/tiptap-templates.git

This command clones the entire repository, providing access to all the Tiptap templates currently available. The block editor template is located in templates/next-block-editor-app.

Proceed with the following steps:

# Duplicate the example environment file and adjust the necessary settings in the .env file
# Ensure the inclusion of your Tiptap cloud token and application IDs in the .env file
cp .env.example .env

# Install project dependencies
npm install

# Launch the development server
npm run dev

# Access the application at http://localhost:3000

Usage Guidelines

The BlockEditor template is a fully functional Next.js application, akin to Notion or Dropbox Paper, suitable as a foundation for your projects or as a base for a custom editor.

Key features of the template include:

  • A Next.js setup with TypeScript
  • A basic Tailwind setup for styling
  • Pre-configured links to Tiptap Cloud for collaboration and data persistence.
  • A Block Editor with a basic set of nodes and marks but also more advanced features like
    • Drag & Drop via a DragHandle
    • A fleshed out menu bar for text editing and formatting
    • Link editing
    • mocked image uploading that can be hooked up to your backend

You can either start a fresh project from this editor or copy over the editor or parts you need to your own projects. Make sure to check out the Tiptap documentation for more information on how to use Tiptap.

Folder structure

The template is structured as a Next.js app with a few additional folders and files:

  • components Includes all React components used in the app
    • BlockEditor the wrapping BlockEditor setup component
    • menus a set of menus used in the editor (for example Link, Text and DragHandle menus)
    • panels popover menus used in menu bars for example the Colorpicker or Link editor
    • Sidebar the sidebar component
    • TableOfContents the table of contents component used for navigation
    • ui general reusable UI components used across the application
  • context A place to put React contexts that are used in the app
  • extensions Includes all Tiptap extensions used in the app including their NodeViews and logic parts
  • hooks Including general hooks used for app and editor setup
  • lib Includes helper functions
  • styles Includes global CSS styles with Tailwind to setup richtext styling

tiptap-next's People

Contributors

caioreis avatar

Stargazers

 avatar

Watchers

Fernando Oliveira avatar  avatar  avatar Erick Birkholz avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.