---
title: "Import custom marks with .docx"
description: "Learn how to import custom marks from DOCX (Word) files using the Import extension in our docs."
---

> [Tiptap Editor 3.0 is out. Start here](https://tiptap.dev/docs/resources/whats-new.md)

# Import custom marks with .docx

Learn how to import custom marks from DOCX (Word) files using the Import extension in our docs.

Tags: Available in Start plan, Beta

## Requirements

**1. Activate trial or subscribe**

Start a [free trial](https://cloud.tiptap.dev/v2?trial=true) or [subscribe to the Start plan](https://cloud.tiptap.dev/v2/billing) in your account.

**2. Install from private registry**

To install this frontend extensions, authenticate to Tiptap’s private npm registry by following the [setup guide](https://tiptap.dev/docs/v2/guides/pro-extensions.md).

When importing a DOCX file, you can also define how custom marks should be converted back to Tiptap nodes. This is done by passing an array of custom mark definitions to the `import` command. You could use this feature to convert your custom stylings from Word into Titap with ease.

```ts
import { Import } from '@tiptap-pro/extension-import-docx'

const editor = new Editor({
  extensions: [
    // Other extensions ...
    Import.configure({
      appId: 'your-app-id',
      token: 'your-jwt',
      // ATTENTION: This is for demo purposes only
      endpoint: 'https://your-endpoint.com',
      imageUploadCallbackUrl: 'https://your-endpoint.com/image-upload',
      // Promisemirror custom mark mapping
      prosemirrorMarks: {
        bold: 'strong',
        italic: 'em',
      }
    }),
    // Other extensions ...
  ],
  // Other editor settings ...
})
```

The latest version of the `@tiptap-pro/extension-import-docx` has the `prosemirrorMarks` configuration option available.

This option allows you to map custom nodes from the DOCX to your Tiptap schema. In the example above, we are mapping the `bold` and `italic` nodes from the DOCX to the `strong` and `em` nodes in our Tiptap schema.

By doing so, whenever the DOCX contains a `bold` or `italic` node, it will be converted to a `strong` or `italic` node in Tiptap when imported.

> **DOCX, "prosemirrorNodes" and "prosemirrorMarks"**
>
> Please note that the `promisemirrorNodes` and `prosemirrorMarks` options will only work if you're importing a `.docx` file. If you're importing another type of file, eg: an `.odt` file, the `/import` endpoint will be used instead of the `/import` endpoint, and the `promisemirrorNodes` and `prosemirrorMarks` options will not be available.
