Skip to content

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

Notifications You must be signed in to change notification settings

KID-1912/tiptap-extension-margin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

tiptap-extension-margin

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


NPM URL version



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

About

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

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published