Skip to main content

Install Txt42 plugin for CKEditor 4

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.

  • 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
  • Unpack​

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

    ckeditor/
    plugins/
    chat-gpt/
    plugin.js
  • Enable​

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

    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
    }

    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.

Dashboard