An open API service indexing awesome lists of open source software.

https://github.com/kid-1912/tiptap-extension-section

Make tiptap support section tags, which provide predefined styles for content.
https://github.com/kid-1912/tiptap-extension-section

extension section style tiptap

Last synced: 11 months ago
JSON representation

Make tiptap support section tags, which provide predefined styles for content.

Awesome Lists containing this project

README

          

# tiptap-extension-section


Make tiptap support section tags, which provide predefined styles for content.




NPM URL

version


---

## Install

```shell
npm install tiptap-extension-section -S
```

## Usage

```js
import Section from "tiptap-extension-section";

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

```js
const html = `


01




公司宣传手册





COMPANY BROCHURE



`;
editor
.chain()
.focus()
.insertContent(html, {
parseOptions: {
preserveWhitespace: false,
},
})
.run();
```

## Relations

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