# tiptap-extension-format-painter

> FormatPainter extension for tiptap （tiptap 格式刷）

Latest version **0.1.0** (published 2022-10-20) · MIT license · 0 weekly downloads

## Install

```sh
npm install tiptap-extension-format-painter
pnpm add tiptap-extension-format-painter
yarn add tiptap-extension-format-painter
bun add tiptap-extension-format-painter
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.0 |
| Published | 2022-10-20 |
| First published | 2022-10-20 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=10 |
| Dependencies | 1 |
| Unpacked size | 11 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 12 |
| Author | coolswitch |
| Maintainers | aliya95 |
| Keywords | tiptap, tiptap extension, tiptap extension format painter, tiptap extension painter, tiptap extension format |

## Links

- npm: https://www.npmjs.com/package/tiptap-extension-format-painter
- Repository: https://github.com/coolswitch/tiptap-extension-format-painter
- Homepage: https://github.com/coolswitch/tiptap-extension-format-painter#readme
- Issues: https://github.com/coolswitch/tiptap-extension-format-painter/issues
- npm.io page: https://npm.io/package/tiptap-extension-format-painter

## Dependencies (1)

- [@tiptap/core](https://npm.io/package/@tiptap/core.md) ^2.0.0-beta.193

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 0.1.0 (latest) — 2022-10-20

## README

# tiptap-extension-format-painter

Format painter extension for tiptap, not support for **table and bullet** yet

## Instalation

`npm i tiptap-extension-format-painter -S`

## Usage

Add it as any extension in `useEditor()`

```ts
import FormatPainter from 'tiptap-extension-format-painter'

  extensions: {
    FormatPainter,
```

## Commands

```js
/** Enable format painter */
editor.commands.enableFormatPainter({
  once: false, // 是否单次效果
  getChain: () => props.editor.chain(),
})

/** Format painter state notify */
editor.commands.watchFormatPainterState((isEnable: boolean) => {
  console.log('FormatPainter state change:', isEnable)
}) 
```

---
_Source: https://npm.io/package/tiptap-extension-format-painter · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
