1.0.0 • Published 1 year ago
tiptap-extension-margin v1.0.0
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
1.0.0
1 year ago