{"id":22332517,"url":"https://github.com/the-3labs-team/tinymce-chatgpt-plugin","last_synced_at":"2025-07-25T21:11:20.153Z","repository":{"id":181836893,"uuid":"667414075","full_name":"The-3Labs-Team/tinymce-chatgpt-plugin","owner":"The-3Labs-Team","description":"🤖 A TinyMCE plugin for ChatGPT (gpt model) OpenAI or Custom LLM compatible endpoints","archived":false,"fork":false,"pushed_at":"2025-05-06T14:47:54.000Z","size":789,"stargazers_count":19,"open_issues_count":2,"forks_count":4,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-05-06T15:55:03.895Z","etag":null,"topics":["ai","llm","opensource","tinymce","tinymce-plugin"],"latest_commit_sha":null,"homepage":"https://3labs.it","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/The-3Labs-Team.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-07-17T12:57:57.000Z","updated_at":"2025-05-06T14:47:58.000Z","dependencies_parsed_at":"2024-03-28T10:26:09.177Z","dependency_job_id":"3d95918f-8721-4f31-a6bb-5b171a26faa3","html_url":"https://github.com/The-3Labs-Team/tinymce-chatgpt-plugin","commit_stats":null,"previous_names":["the-3labs-team/tinymce-chatgpt-plugin"],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/The-3Labs-Team/tinymce-chatgpt-plugin","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/The-3Labs-Team%2Ftinymce-chatgpt-plugin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/The-3Labs-Team%2Ftinymce-chatgpt-plugin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/The-3Labs-Team%2Ftinymce-chatgpt-plugin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/The-3Labs-Team%2Ftinymce-chatgpt-plugin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/The-3Labs-Team","download_url":"https://codeload.github.com/The-3Labs-Team/tinymce-chatgpt-plugin/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/The-3Labs-Team%2Ftinymce-chatgpt-plugin/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265529135,"owners_count":23782831,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ai","llm","opensource","tinymce","tinymce-plugin"],"created_at":"2024-12-04T04:18:27.952Z","updated_at":"2025-07-16T18:07:52.988Z","avatar_url":"https://github.com/The-3Labs-Team.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# TinyMCE ChatGPT Plugin\n\n\u003cp align=\"center\"\u003e\u003cimg src=\"https://github.com/the-3labs-team/tinymce-chatgpt-plugin/raw/HEAD/art/logo-tinyopen.svg\" alt=\"Logo TinyMCE ChatGPT Plugin\"\u003e\u003c/p\u003e\n\n[![Lint](https://github.com/The-3Labs-Team/tinymce-chatgpt-plugin/actions/workflows/lint.yml/badge.svg)](https://github.com/The-3Labs-Team/tinymce-chatgpt-plugin/actions/workflows/lint.yml)\n![License](https://img.shields.io/github/license/the-3labs-team/tinymce-chatgpt-plugin)\n![jsDelivr hits (GitHub)](https://img.shields.io/jsdelivr/gh/hy/The-3Labs-Team/tinymce-chatgpt-plugin?label=downloads)\n[![Maintainability](https://api.codeclimate.com/v1/badges/1737eafb663973324bc8/maintainability)](https://codeclimate.com/github/The-3Labs-Team/tinymce-chatgpt-plugin/maintainability)\n\nThis plugin integrates ChatGPT (or your OpenAI compatible LLM) within TinyMCE, allowing you to generate realistic and creative text with the push of a button.\n\n\u003cp align=\"center\"\u003e\u003cimg src=\"https://github.com/the-3labs-team/tinymce-chatgpt-plugin/raw/HEAD/art/demo.gif\" alt=\"TinyMCE Demo Gif\"\u003e\u003c/p\u003e\n\nTo use the plugin, simply install and activate it in TinyMCE. Once activated, you will see a new \"ChatGPT\" button in the TinyMCE toolbar. Click this button to open a dialog box where you can enter a request to ChatGPT. ChatGPT will then generate the requested text and enter it into your editor.\n\nChatGPT can be used to generate a variety of text formats, including articles, blog posts, e-mails, letters, and more. It can also be used to translate languages, write different types of creative content, and answer your questions in an informative way.\n\nChatGPT is a powerful tool that can help you improve your productivity and the quality of your work. Try it out today!\n\n## Features\n\n- 🤖 OpenAI and Custom LLM OpenAI compatible\n- ⚙️ Support custom prompts defined by you!\n- 🧑‍🎨 Generates realistic and creative text with the push of a button\n- 🧬 Can be used to generate a variety of text formats\n- 🈷️ Can be used to translate languages\n- 🙋 Can be used to answer your questions in an informative way\n\n| :warning: WARNING                                                                                                                                         |\n| :-------------------------------------------------------------------------------------------------------------------------------------------------------- |\n| Consider this plugin as a prototype and not suitable for production deployment at this time. Use it only in controlled environments and at your own risk. |\n\n## Requirements\n\n- TinyMCE 6|7 or later\n- OpenAI API key ([get one here](https://openai.com))\n- (Optional) Custom LLM API\n\n## Installation\n\nThis plugin comes as an _external plugin_; however, you can download the _.js file_ and upload it to your host.\n\nTo install, simply **edit the init configuration** of your TinyMCE as follows:\n\n```js\ntinymce.init({\n  // 1. Add the plugin to the list of external plugins\n  external_plugins: {\n    chatgpt:\n      \"https://cdn.jsdelivr.net/gh/The-3Labs-Team/tinymce-chatgpt-plugin@2/dist/chatgpt.js\",\n  },\n\n  // 2. Configure the ChatGPT plugin\n  openai: {\n    api_key: \"sk-yourapikeyhere\", // Your OpenAI API key\n    model: \"gpt-3.5-turbo\",\n    temperature: 0.5,\n    max_tokens: 150,\n    prompts: [\n      \"Translate from English to Italian\",\n      \"Summarize\",\n      \"Proofread\",\n      \"Write a blog post about\",\n    ],\n    // Optional: Add your custom LLM\n    // baseUri: \"https://your-llm-endpoint.com\",\n  },\n\n  // 3. Add the ChatGPT button to the toolbar\n  toolbar: [\"chatgpt\"],\n});\n```\n\nIf you are using our [TinyMCE Laravel Nova Package 4](https://github.com/murdercode/Nova4-TinymceEditor) you can configure as follows:\n\n```php\n\u003c?php\n\n'init' =\u003e [\n\n    // 1. Add the plugin to the list of external plugins\n    'external_plugins' =\u003e [\n        'chatgpt' =\u003e 'https://cdn.jsdelivr.net/gh/The-3Labs-Team/tinymce-chatgpt-plugin@2/dist/chatgpt.js'\n    ],\n\n    // 2. Configure the plugin\n    'openai' =\u003e [\n        'api_key' =\u003e 'sk-yourapikeyhere', // Your OpenAI API key\n        'model' =\u003e 'gpt-3.5-turbo',\n        'temperature' =\u003e 0.5,\n        'max_tokens' =\u003e 150,\n        'prompts' =\u003e [\n            'Translate from English to Italian',\n            'Summarize',\n            'Proofread',\n            'Write a blog post about',\n        ],\n        // Optional: Add your custom LLM\n        // 'base_uri' =\u003e 'https://your-llm-endpoint.com',\n    ],\n\n],\n\n// 3. Add the plugin to the toolbar\n'toolbar' =\u003e ['chatgpt']\n\n//...\n```\n\n### Breaking Changes from v1 to v2\n\n- We are using the new `/chat/completions` endpoint from OpenAI\n- The `model` default now must be a chat model, like `gpt-3.5-turbo`\n- If you want to use the old `/completion` endpoint, you can use the `baseUri` option to set your custom LLM endpoint like `https://api.openai.com/v1/completions`\n\n### Custom LLM\n\nIf you have a custom LLM, you can use it by setting the `baseUri` option in the configuration. The plugin will use this endpoint to generate the text.\n\n```js\nbaseUri: \"https://your-llm-endpoint.com\"\n```\n\nPlease note that the custom LLM must be OpenAI compatible and follow the same API as OpenAI.\nAlso, the custom LLM must be accessible from the client-side.\nCheck the `demo-lm-studio.html` file for an example of how to use a custom LLM.\n\n## Sponsor\n\n\u003cdiv\u003e  \n    \u003ca href=\"https://www.tomshw.it/\" target=\"_blank\" rel=\"noopener noreferrer\"\u003e\n        \u003cimg  src=\"https://3labs-assets.b-cdn.net/assets/logos/banner-github/toms.png\" alt=\"Tom's Hardware - Notizie, recensioni, guide all'acquisto e approfondimenti per tutti gli appassionati di computer, smartphone, videogiochi, film, serie tv, gadget e non solo\" /\u003e  \n    \u003c/a\u003e\n    \u003ca href=\"https://spaziogames.it/\" target=\"_blank\" rel=\"noopener noreferrer\" \u003e\n        \u003cimg src=\"https://3labs-assets.b-cdn.net/assets/logos/banner-github/spazio.png\" alt=\"Spaziogames - Tutto sul mondo dei videogiochi. Troverai tantissime anteprime, recensioni, notizie dei giochi per tutte le console, PC, iPhone e Android.\" /\u003e\n    \u003c/a\u003e\n    \u003cbr/\u003e\n    \u003ca href=\"https://cpop.it/\" target=\"_blank\" rel=\"noopener noreferrer\" \u003e\n        \u003cimg src=\"https://3labs-assets.b-cdn.net/assets/logos/banner-github/cpop.png\" alt=\"Cpop - News, recensioni, guide su fumetto, cinema \u0026 serie TV, gioco da tavolo e di ruolo e collezionismo. Tutto quello di cui hai bisogno per rimanere aggiornato sul mondo della cultura pop\"/\u003e\n    \u003c/a\u003e\n    \u003ca href=\"https://data4biz.com/\" target=\"_blank\" rel=\"noopener noreferrer\" \u003e\n        \u003cimg src=\"https://3labs-assets.b-cdn.net/assets/logos/banner-github/d4b.png\" alt=\"Data4Biz - Sito dedicato alla trasformazione digitale del business\" /\u003e\n    \u003c/a\u003e\n    \u003cbr/\u003e\n    \u003ca href=\"https://soshomegarden.com/\" target=\"_blank\" rel=\"noopener noreferrer\" \u003e\n        \u003cimg src=\"https://3labs-assets.b-cdn.net/assets/logos/banner-github/sos.png\" alt=\"SOS Home \u0026 Garden - Realtà dedicata a 360 gradi ai settori della casa e del giardino.\" /\u003e\n    \u003c/a\u003e\n    \u003ca href=\"https://global.techradar.com/it-it\" target=\"_blank\" rel=\"noopener noreferrer\" \u003e\n        \u003cimg src=\"https://3labs-assets.b-cdn.net/assets/logos/banner-github/techradar.png\" alt=\"Techradar - Le ultime notizie e recensioni dal mondo della tecnologia, su computer, sistemi per la casa, gadget e altro.\" /\u003e\n    \u003c/a\u003e\n    \u003cbr/\u003e\n    \u003ca href=\"https://aibay.it/\" target=\"_blank\" rel=\"noopener noreferrer\" \u003e\n        \u003cimg src=\"https://3labs-assets.b-cdn.net/assets/logos/banner-github/aibay.png\" alt=\"Aibay - Scopri AiBay, il leader delle notizie sull'intelligenza artificiale. Resta aggiornato sulle ultime innovazioni, ricerche e tendenze del mondo AI con approfondimenti, interviste esclusive e analisi dettagliate.\" /\u003e\n    \u003c/a\u003e\n    \u003ca href=\"https://coinlabs.it/\" target=\"_blank\" rel=\"noopener noreferrer\" \u003e\n        \u003cimg src=\"https://3labs-assets.b-cdn.net/assets/logos/banner-github/coinlabs.png\" alt=\"Coinlabs - Notizie, analisi approfondite, guide e opinioni aggiornate sul mondo delle criptovalute, blockchain e finanza\" /\u003e\n    \u003c/a\u003e\n\n\u003c/div\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthe-3labs-team%2Ftinymce-chatgpt-plugin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthe-3labs-team%2Ftinymce-chatgpt-plugin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthe-3labs-team%2Ftinymce-chatgpt-plugin/lists"}