tiptap-extension-line-height

1.0.0 • Public • Published

tiptap-extension-line-height

A line-height extension for tiptap paragraph.


NPM URL version



Install

npm install tiptap-extension-line-height -S

Usage

import LineHeight from "tiptap-extension-line-height";

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

const value = "1.25"; // 15px 0.25rem
editor.chain().focus().setLineHeight(value).run();

Relations

tiptap: https://tiptap.dev/

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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.0
    19
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.0
    19

Package Sidebar

Install

npm i tiptap-extension-line-height

Weekly Downloads

19

Version

1.0.0

License

ISC

Unpacked Size

2.44 kB

Total Files

4

Last publish

Collaborators

  • kid-1912