Ckeditor Cowriter banner
netresearch netresearch

Ckeditor Cowriter

Development community

Description

This plugin generates content with the help of artificial intelligence. It is based on the CKEditor 4. It uses the OpenAI API to generate text.

Installation

This entry records only its repository, not the path inside it, so there is no exact command to give. Open the source below and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

README

CKEditor 4 Plugin - Cowriter 🤖

[![Release](https://github.com/netresearch/ckeditor-cowriter/actions/workflows/release.yml/badge.svg)](https://github.com/netresearch/ckeditor-cowriter/actions/workflows/release.yml)

This plugin generates content with the help of artificial intelligence. It is based on the [CKEditor 4](http://ckeditor.com/). It uses the [OpenAI API](https://beta.openai.com/) to generate text. You can use it to generate text for your blog posts, emails, or any other content.

![Cowriter with TYPO3 CMS](docs/images/ckditor-cowriter-animation-100.gif)

Give it a try and let the AI write for you: [Demo](https://netresearch.github.io/ckeditor-cowriter/)

Installation

You can find the plugin in the [CKEditor plugin directory](https://ckeditor.com/cke4/addon/cowriter)

Installation with [npm](https://www.npmjs.com/package/@netresearch/ckeditor-cowriter)

  1. Install the plugin with npm:

    npm install @netresearch/ckeditor-cowriter --save
  2. Enable the plugin by using the `extraPlugins` configuration setting. For example:

    CKEDITOR.plugins.addExternal('cowriter', '/node_modules/@netresearch/ckeditor-cowriter/dist/', 'plugin.js')
    CKEDITOR.config.extraPlugins = 'cowriter';

Installation from source

  1. Download the [latest release](https://ckeditor.com/cke4/addon/cowriter) of the plugin.

  2. Extract the contents of the archive into a directory. For example: `/plugins/cowriter/`

  3. Enable the plugin by using the `addExternal`and `extraPlugins` configuration setting. For example:

    CKEDITOR.plugins.addExternal('cowriter', '/plugins/cowriter/', 'plugin.js')
    CKEDITOR.config.extraPlugins = 'cowriter';

Configuration

You need to define your OpenAI credentials. Do this above the `CKEDITOR.replace` call. For example:

const OPENAI_KEY = 'YOUR-KEY'
const OPENAI_ORG = 'org-YOUR-ORG-KEY'

Usage

  1. Click on the Cowriter button in the toolb