Skip to content

Commit

Permalink
fix: import Word file by mammoth
Browse files Browse the repository at this point in the history
  • Loading branch information
condorheroblog committed Jan 9, 2025
1 parent cb769fe commit 761ac36
Show file tree
Hide file tree
Showing 11 changed files with 243 additions and 66 deletions.
16 changes: 16 additions & 0 deletions docs/extensions/ImportWord/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,22 @@ next:

## Usage

::: code-group

```sh [npm]
npm install mammoth
```

```sh [pnpm]
pnpm install mammoth
```

```sh [yarn]
yarn add mammoth
```

:::

```tsx
import { ImportWord } from 'reactjs-tiptap-editor'; // [!code ++]

Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,7 @@
"execa": "^9.5.2",
"git-scm-hooks": "^0.0.11",
"globby": "^14.0.2",
"mammoth": "^1.9.0",
"md5": "^2.3.0",
"postcss": "^8.4.49",
"postcss-replace": "^2.0.1",
Expand Down
Loading

0 comments on commit 761ac36

Please sign in to comment.