# Install Txt42 plugin for CKEditor 4

> Install the Txt42 AI assistant into CKEditor 4: download the plugin, unpack it into the CKEditor folder, enable it in config.js with its two toolbar buttons.

Source: https://txt42.ai/docs/install/ckeditor-4  
Section: Installation > CKEditor 4  
Updated: 2026-11-13  
Every page of txt42.ai has a Markdown copy at its URL + `.md` (`index.md` after a URL that ends in `/`); all of them are in one file: https://txt42.ai/llms-full.txt

Txt42 adds an AI assistant to your CKEditor 4: chat with your document or run AI actions on a selection, and accept or reject every edit it proposes right in the content.

## Step 1: Download

Get the Txt42 plugin for installing into your existing CKEditor 4 editor.

Note: using the latest free version of CKEditor (4.22.1) is recommended.

[Download Plugin](https://txt42.ai/download/chat-gpt-ckeditor.zip)

## Step 2: Unpack

Unpack the archive into the CKEditor folder, the one that holds `plugins/`. The plugin lands here:

```text
ckeditor/
  plugins/
    chat-gpt/
      plugin.js
```

## Step 3: Enable

Enable the Txt42 add-on in the CKEditor 4 config and put its `Txt42Chat` and `Txt42Commands` buttons on the toolbar:

### Tab: config.js

```js
CKEDITOR.editorConfig = function(config) {
    config.extraPlugins = "chat-gpt";
    config.versionCheck = false; // skip its upgrade notice of CKEditor itself
    config.toolbar = [
        // ...your toolbar goes here...
        ["Txt42Chat", "Txt42Commands"]
    ];

    // config.apiKey = "...";
    // Get your own key in the Dashboard: https://txt42.ai/dashboard
}
```

### Tab: Direct initialization

```js
CKEDITOR.replace("editorId", {
    extraPlugins: "chat-gpt",
    versionCheck: false, // skip its upgrade notice of CKEditor itself
    toolbar: [
        // ...your toolbar goes here...
        ["Txt42Chat", "Txt42Commands"]
    ],

    // apiKey: "...",
    // Get your own key in the Dashboard: https://txt42.ai/dashboard
});
```

Please avoid using spaces in `extraPlugins` if you have other plugins enabled. Use a comma only as the separator.

## ✓ Ready to Use

## Configuration

Configure your Txt42 CKEditor 4 installation in the Dashboard: the AI provider keys of the Enterprise plan, the chat and the toolbar buttons, all without touching the code. See [Configuration](https://txt42.ai/docs/configuration).

[Dashboard](https://txt42.ai/dashboard)
