tiptap-extension-letter-spacing
v1.0.0
Published
A letter-spacing extension for tiptap paragraph.
Downloads
6
Maintainers
Readme
tiptap-extension-letter-spacing
Install
npm install tiptap-extension-letter-spacing -S
Usage
import LetterSpacing from "tiptap-extension-letter-spacing";
const editor = new Editor({
element: document.querySelector(".editor"),
extensions: [StarterKit, LetterSpacing],
});
const value = "2px"; // 5px 0.25rem
editor.chain().focus().setLetterSpacing(value).run();
Relations
tiptap: https://tiptap.dev/
tiptap-appmsg-editor: https://github.com/KID-1912/tiptap-appmsg-editor