An open API service indexing awesome lists of open source software.

https://github.com/kid-1912/tiptap-extension-margin

An extension that add margin to tiptap paragraph or more nodes.
https://github.com/kid-1912/tiptap-extension-margin

extension margin paragraph tiptap

Last synced: 7 months ago
JSON representation

An extension that add margin to tiptap paragraph or more nodes.

Awesome Lists containing this project

README

          

# tiptap-extension-margin


An extension that add margin to tiptap paragraph or more nodes.




NPM URL

version


---

## Install

```shell
npm install tiptap-extension-margin -S
```

## Usage

```js
import Margin from "tiptap-extension-margin";

const editor = new Editor({
element: document.querySelector(".editor"),
extensions: [StarterKit, Margin],
});

// { top, bottom, left, right }
editor.chain().focus().setMargin({ top: "10px" }).run();
```

## Relations

**tiptap:** https://tiptap.dev/

**tiptap-appmsg-editor:** https://github.com/KID-1912/tiptap-appmsg-editor