Embed
Installation

Installation

To install the Postnitro Embed package, run the following command:

pnpm add @postnitro/embed

Importing the Library

You can import the library in two ways:

  1. As a Module (Recommended for React, Next.js, and other modern frameworks)
import {createEditor} from "@postnitro/embed";
  1. As a Script (Traditional Way)

Add the following script tag to your HTML file:

<script src="https://cdn.jsdelivr.net/npm/@postnitro/embed/dist/index.umd.js"></script>