tiptap-extension-margin
v1.0.0
Published
An extension that add margin to tiptap paragraph or more nodes.
Downloads
66
Maintainers
Readme
tiptap-extension-margin
Install
npm install tiptap-extension-margin -S
Usage
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