Start trial
PricingContact Us
Log InStart Free Trial

What's new in TinyMCE 8.11: Design your own AI experience with decoupled AI

2 min read

What's new in TinyMCE 8.11: Design your own AI experience with decoupled AI

Written by

Hubert Grzesiek

Category

The Tiny Way

Every product has its own way of working. A CMS, an email tool and a knowledge base each need AI at a different moment and in a different place. TinyMCE 8.11 adds decoupled mode for TinyMCE AI, so you can design that AI experience around how your users work.

With decoupled mode, you decide:

  • Where AI opens: anywhere on the page, at whatever size suits the task.
  • When AI opens: as soon as the editor loads, or only when your users ask for it.
  • How people reach it: from the editor toolbar, or from your own buttons and shortcuts.

One assistant for a page with many fields

A product page in a CMS often has several editors: a headline, a short description, a full description and a feature list. Since TinyMCE 8.10, AI can work across all of them at once. With decoupled mode, one AI Chat panel can stay open beside the whole form while the writer moves from field to field. They can ask AI to make the whole page sound friendlier in one go, instead of working field by field. The writer thinks about the page as a whole, and AI does too.

Make AI part of your product's flow

Because you decide what opens AI and when, it can show up at the moment it's most useful: a button next to Send, a step before publishing, or a shortcut your power users already know. You can keep the AI buttons in the editor toolbar, or rely on your own controls. Your users meet AI where they're already working, at the point they need it.

Choose the option that fits

Decoupled mode sits alongside the two options TinyMCE AI already has. Each one suits a different need:

  • Sidebar: AI right next to the text. A good fit when the editor is the main thing on the page.
  • Floating sidebar: a panel users can move around the editor as they write.
  • Decoupled mode: for when AI is one part of a bigger workflow, and you want to decide how it fits in.

How to set it up

Add an element to your page for the AI panel, then point TinyMCE AI at it with a CSS selector. The panel takes the full width and height of that element, so set its size to suit the experience you're building.

<code class="language-markup"><div id="ai-panel"></div></code>
<code class="language-javascript">tinymce.init({
  selector: 'textarea',
  plugins: 'tinymceai',
  toolbar: 'tinymceai-chat tinymceai-review',
  // Show the AI panel in your own element
  tinymceai_decoupled_container: '#ai-panel',
  // Optional: open AI Chat when the editor loads
  tinymceai_decoupled_show: 'tinymceai-chat'
});

// Optional: open or close AI Chat from your own button
function toggleChat() {
  tinymce.activeEditor.execCommand('TinyMCEAIToggleApp', false, 'tinymceai-chat');
}</code>

The element needs to be on the page when the editor loads, and your selector should match exactly one element. If it doesn't, TinyMCE shows a warning in the console so you can fix the config early.

Update to get it

Decoupled mode is available now in TinyMCE 8.11 for TinyMCE AI customers. See the TinyMCE 8.11 release notes for the full list of options, commands and events.

byHubert Grzesiek

Hubert Grzesiek leads product marketing at Tiugo Technologies. With around 15 years of experience in software development before moving into product marketing, he brings a developer-first perspective to topics such as rich text editing, file handling, content workflows, and building software products.

Related Articles

  • The Tiny Way

    TinyMCE 7 End of Support: What It Means and How to Upgrade.

Join 100,000+ developers who get regular tips & updates from the Tiny team.

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.