Skip to content

lpotthast/leptos-tiptap

Repository files navigation

leptos-tiptap

Enables the integration of Tiptap instances into your leptos projects.

Currently used tiptap version: 2.2.0, when using leptos-tiptap-build 0.2.5

Currently used tiptap extensions:

  • "@tiptap/core": "^2.2.0",
  • "@tiptap/extension-highlight": "^2.2.0",
  • "@tiptap/extension-image": "^2.2.0",
  • "@tiptap/extension-text-align": "^2.2.0,
  • "@tiptap/starter-kit": "^2.2.0"

This repository contains:

Dir What is it for?
leptos-tiptap The main dependency other leptos projects can depend on. It provides the <TiptapInstance> component through which a tiptap instance is managed automatically.
leptos-tiptap-build This dependency can be used in build.rs scrips. It provides the correctly compiled tiptap JS bundle which must be included in your application to work properly. Check out the example in leptos-tiptap to see how this can be achieved.
tiptap Build process for the tiptap JS bundle. Can be triggered by calling just build. Build output is automatically saved to leptos-tiptap-build and picked up by the example in leptos-tiptap.