TinyMCE ChatGPT sample

Demo
HTML
JavaScript
CSS
<link rel='stylesheet' href='https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.5.0/css/bootstrap.min.css'>

<h1 class="h5 mb-3">Txt42: TinyMCE ChatGPT plugin</h1>

<textarea id="editor"><h2>Test content</h2></textarea>

<script src='https://txt42.ai/js-demo/tinymce-6.3/tinymce.min.js'></script>
"use strict";
tinymce.init({
    selector: "#editor",
    plugins: "chat-gpt,link,image",
    toolbar: "link | undo redo | styleselect | bold italic | alignleft aligncenter alignright alignjustify | outdent indent",
    apiKey: "TXAI24RR", // use your own key here
});
body {
  padding: 20px;
  background-color: #F4F4F4;
}

.tox-promotion {
  display: none !important;
}

This sample demonstrates the installation of the Txt42.AI ChatGPT plugin into the TinyMCE editor by adding buttons to the toolbar of TinyMCE.

Please note that you need to change the apiKey parameter to your own key. You can find it in your Dashboard.