@edifice.io/tiptap-extensions
v2.5.15
Published
Edifice Rich Text Editor Extensions
Maintainers
Readme
Edifice Rich Text Editor Extensions
Extensions based on Tiptap Editor. Extends functionalities of the editor.
Prerequisites
pnpm: >= 9node: >= 20
Getting Started
Install
pnpm add @edifice.io/tiptap-extensionsImports
Global
import { Alert, Video } from "@edifice.io/tiptap-extensions"Sub-imports
import { Alert } from "@edifice.io/tiptap-extensions/alert"New extension
To create a new extension, please do as follow :
- Create a subfolder in
srcwith the name of the extension (e.g:my-extension)
my-extension- Create two files inside the new folder:
index.tsmy-extension.ts
my-extension
└── my-extension.ts
└── index.ts- Check one existing extension or refer to the official documentation to develop an extension.
- Then, add your extension in the
package.jsonsub-exports in alphabetical order.
"./my-extension": {
"import": "./dist/my-extension/my-extension.js",
"require": "./dist/my-extension/my-extension.cjs"
}- Run
pnpm run buildto generate a bundle - Test your extension before committing and pushing to remote
