Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
45 commits
Select commit Hold shift + click to select a range
9378169
DOC-3355: TinyMCE 8.5.0 Documentation release and community changelog.
kemister85 Apr 13, 2026
1d52b08
Docs: DOC-3355 - Menus no longer close on mouse out. (#4051)
kemister85 Apr 28, 2026
d411b30
DOC-3355, DOC-3485: The first loading card during a review no longer …
kemister85 Apr 28, 2026
5252e58
DOC-3355: Prevent valid iframe and script elements from being removed…
kemister85 Apr 28, 2026
03c7a4e
Docs: DOC-3355 - New commands for executing AI UI actions (#4082)
kemister85 Apr 28, 2026
6f3d389
DOC-3355: New optional id property to tinymceai_quickactions_custom t…
kemister85 Apr 28, 2026
0e96bc7
Docs: DOC-3355 - Loader in the chat was normal size instead of small …
kemister85 Apr 28, 2026
b767455
DOC-3355: While the plugin is generating a review or quick action, th…
kemister85 Apr 28, 2026
89c3d2d
DOC-3355: AI Review suggestion cards now stay available when you clos…
kemister85 Apr 28, 2026
d9a14e3
DOC-3355: Add TINY-14158 release note for AI Review list accordion ba…
kemister85 Apr 28, 2026
753ac0b
DOC-3355: Certain combinations of divs inside of lists would cause is…
kemister85 Apr 28, 2026
c785c1b
Docs: DOC-3355 - Premium content CSS files contained extraneous style…
kemister85 Apr 28, 2026
fc14bae
DOC-3355: `ToggleSidebar` events were not being triggered when toggli…
kemister85 Apr 28, 2026
5f2ee2a
DOC-3355: Add TINY-14157 release note for TinyMCE AI layout shift fix…
kemister85 Apr 28, 2026
256d72a
DOC-3355: Focus is no longer lost when deleting a context source usin…
kemister85 Apr 28, 2026
3e605d3
Docs: DOC-3355 - Super and subscript text was not properly converted …
kemister85 Apr 28, 2026
3383cd3
Docs: DOC-3355 - New chat button was not disabled when the chat was e…
kemister85 Apr 28, 2026
20920da
Docs: DOC-3355 - Certain selections would delete the editor body, cau…
kemister85 Apr 28, 2026
3b0da92
Docs: DOC-3355 - Reduced spacing between label and body in decision c…
kemister85 Apr 28, 2026
fcd7939
Docs: DOC-3355 - Tab could be used to move focus between segmented bu…
kemister85 Apr 28, 2026
c65cb25
Docs: DOC-3355 - The user prompt background color was incorrect in th…
kemister85 Apr 28, 2026
9de7dd8
Docs: DOC-3355 - Tag removal was not disabled while the AI was respon…
kemister85 Apr 28, 2026
94fe67b
Docs: DOC-3355 - The background behind code snippets in AI in-chat re…
kemister85 Apr 28, 2026
e30988b
Docs: DOC-3355 - Arrow key navigation did not cycle between the first…
kemister85 Apr 28, 2026
5419051
Docs: DOC-3355 - Alert and confirm dialogs were not announced properl…
kemister85 Apr 28, 2026
ec63fda
DOC-3355: Improved error message for too-large prompts (#4076)
kemister85 Apr 28, 2026
dfbb892
Docs: DOC-3355 - URIs with non-Latin1 characters were returning an er…
kemister85 Apr 28, 2026
cb5e6f2
Docs: DOC-3355 - Preserved the selected diff when switching between d…
kemister85 Apr 28, 2026
42d4d0a
Docs: DOC-3355 - It was possible to submit white space only titles wh…
kemister85 Apr 28, 2026
56f5b04
Docs: DOC-3355 - History conversation titles were not trimmed (#4087)
kemister85 Apr 28, 2026
a600a0a
Docs: DOC-3355 - Preview iframe missing content styles such as figure…
kemister85 Apr 28, 2026
2574a1e
Docs: DOC-3355 - Upload progress UI was not hidden if a file failed t…
kemister85 Apr 28, 2026
b882e8e
Docs: DOC-3355 - History entries with lengthy names with no line brea…
kemister85 Apr 28, 2026
121dde2
Docs: DOC-3355 - Accessibility checker overlay was too dark on multil…
kemister85 Apr 28, 2026
afb6ab0
DOC-3355: Previous and next buttons are now disabled when only one pe…
kemister85 Apr 28, 2026
ddc1aff
Docs: DOC-3355 - The floating toolbar had a transparent background in…
kemister85 Apr 28, 2026
122f1e8
Docs: DOC-3355 - In some browser/OS combinations it was not possible …
kemister85 Apr 28, 2026
6d57ea5
Docs: DOC-3355 - A long list of fetched sources could overflow the su…
kemister85 Apr 28, 2026
bdc1a2a
DOC-3355: New content_language option to set the lang attribute on th…
kemister85 Apr 28, 2026
188d71a
Docs: DOC-3355 - Update changelog.adoc with TinyMCE 8.5.0 entries
kemister85 Apr 28, 2026
8968752
Docs: DOC-3355 - Improved visual styling of inline diff highlights in…
kemister85 Apr 28, 2026
17d6fe4
DOC-3468 - Document TinyMCE AI 8.5 custom reviews, commands, and quic…
kemister85 Apr 28, 2026
e75e065
Docs: DOC-3355 - Clean up 8.5.0 release notes, changelog, and nav
kemister85 Apr 28, 2026
cf5e8f7
DOC-3355: Fix syntax issue causing code block.
kemister85 Apr 29, 2026
e014f33
DOC-3355: api-version bump for 8.5.0.
kemister85 Apr 29, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .api-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
8.4.0
8.5.0
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 0 additions & 7 deletions modules/ROOT/nav.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -411,20 +411,13 @@
// Remove un-used-for-this-particular-release entries.
*** {productname} 8.5.0
**** xref:8.5.0-release-notes.adoc#overview[Overview]
**** xref:8.5.0-release-notes.adoc#new-premium-plugin<s>[New Premium Plugin<s>]
**** xref:8.5.0-release-notes.adoc#new-open-source-plugin<s>[New Open Source Plugin<s>]
**** xref:8.5.0-release-notes.adoc#accompanying-premium-plugin-changes[Accompanying Premium Plugin changes]
**** xref:8.5.0-release-notes.adoc#accompanying-premium-plugin-end-of-life-announcement[Accompanying Premium Plugin end-of-life announcement]
**** xref:8.5.0-release-notes.adoc#accompanying-open-source-plugin-end-of-life-announcement[Accompanying Open Source Plugin end-of-life announcement]
**** xref:8.5.0-release-notes.adoc#accompanying-enhanced-skins-and-icon-packs-changes[Accompanying Enhanced Skins & Icon Packs changes]
**** xref:8.5.0-release-notes.adoc#improvements[Improvements]
**** xref:8.5.0-release-notes.adoc#additions[Additions]
**** xref:8.5.0-release-notes.adoc#changes[Changes]
**** xref:8.5.0-release-notes.adoc#removed[Removed]
**** xref:8.5.0-release-notes.adoc#bug-fixes[Bug fixes]
**** xref:8.5.0-release-notes.adoc#security-fixes[Security fixes]
**** xref:8.5.0-release-notes.adoc#deprecated[Deprecated]
**** xref:8.5.0-release-notes.adoc#known-issues[Known issues]
*** {productname} 8.4.0
**** xref:8.4.0-release-notes.adoc#overview[Overview]
**** xref:8.4.0-release-notes.adoc#new-premium-plugin[New Premium plugin]
Expand Down
410 changes: 327 additions & 83 deletions modules/ROOT/pages/8.5.0-release-notes.adoc

Large diffs are not rendered by default.

22 changes: 21 additions & 1 deletion modules/ROOT/pages/changelog.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,27 @@ NOTE: This is the {productname} Community version changelog. For information abo

== xref:8.5.0-release-notes.adoc[8.5.0 - 2026-04-29]

//TODO
### Added
* New `content_language` option to set the `lang` attribute on the iframe's `html` element or the inline editor's target element.
// #TINY-11214

### Improved
* Improved visual styling of inline diff highlights in Suggested Edits and TinyMCE AI plugin.
// #TINY-13958

### Fixed
* URIs with non-Latin1 characters were returning an error.
// #TINY-13938
* Alert and confirm dialogs were not announced properly by some screen readers.
// #TINY-13812
* Certain selections would delete the editor body, causing issues.
// #TINY-14149
* Certain combinations of divs inside of lists would cause issues turning off lists.
// #TINY-14070
* Script elements would incorrectly be removed by DomPurify when considered valid in the schema.
// #TINY-9655
* Iframe elements with children would incorrectly be removed by DomPurify.
// #TINY-9655

== xref:8.4.0-release-notes.adoc[8.4.0 - 2026-02-04]

Expand Down
4 changes: 4 additions & 0 deletions modules/ROOT/pages/content-localization.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
:description_short: Localize TinyMCE for your language, including directionality.
:description: These settings configure TinyMCE's language capabilities, including right-to-left support.

== Setting the default content language

include::partial$configuration/content_language.adoc[leveloffset=+1]

== Setting the language on content

include::partial$configuration/content_langs.adoc[leveloffset=+1]
Expand Down
2 changes: 1 addition & 1 deletion modules/ROOT/pages/editor-command-identifiers.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -530,7 +530,7 @@ include::partial$commands/tableofcontents-cmds.adoc[leveloffset=+3]
[[tinymceai]]
==== TinyMCE AI

The xref:tinymceai.adoc[TinyMCE AI (`+tinymceai+`)] plugin registers AI Chat and AI Review sidebars. The following subsection describes how to open and close them using a core editor command.
The xref:tinymceai.adoc[TinyMCE AI (`+tinymceai+`)] plugin registers AI Chat and AI Review sidebars, Quick Actions-related editor commands, and uses the core `+ToggleSidebar+` command for sidebar visibility. The following partial covers `+ToggleSidebar+`, floating-sidebar behavior, and plugin command names.

include::partial$commands/tinymceai-cmds.adoc[leveloffset=+3]

Expand Down
2 changes: 1 addition & 1 deletion modules/ROOT/pages/fullpagehtml.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ include::partial$misc/bundling-guide-link.adoc[]
[WARNING]
====
**Certain elements may be removed by XSS sanitization**
By default, {productname} sanitizes HTML content to protect against XSS attacks. Elements outside the HTML5 specification, such as `<script>`, are removed. Standard `<meta>` tags are preserved, but attributes not defined in the HTML5 spec (for example, the RDFa `property` attribute) require explicit configuration to be retained.
By default, {productname} sanitizes HTML content to protect against XSS attacks. Elements outside the HTML5 specification, such as `<script>`, are removed unless explicitly allowed through xref:content-filtering.adoc#valid_elements[`+valid_elements+`] or xref:content-filtering.adoc#extended_valid_elements[`+extended_valid_elements+`]. Standard `<meta>` tags are preserved, but attributes not defined in the HTML5 spec (for example, the RDFa `property` attribute) require explicit configuration to be retained.

If integrators encounter issues with required elements being removed, the following configuration options are available. These options reduce security and should be used with caution:

Expand Down
2 changes: 1 addition & 1 deletion modules/ROOT/pages/tinymceai-actions.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ The following table lists built-in Quick Actions.

|**Fix Grammar** |`ai-quickactions-check-grammar` |`fix-grammar` |Correct grammar, spelling, and punctuation errors. |✓ |✓

|**Adjust length** |`ai-quickactions-change-length` |`make-shorter`, `make-longer` |Shorten or lengthen the selection. Each option is its own system action. |✓ |✓
|**Change length** |`ai-quickactions-change-length` |`make-shorter`, `make-longer` |Shorten or lengthen the selection. Each option is its own system action. |✓ |✓

|**Adjust Tone**
a|
Expand Down
34 changes: 21 additions & 13 deletions modules/ROOT/pages/tinymceai-review.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ image::tinymceai/tinymce-ai-review-sidebar-command-categories-proofread-clarity.
[[integration]]
== Integration

To start using the Review feature, add `+tinymceai+` to the plugins option. This will automatically add the image:icons-premium/ai-review.svg[Review icon,24px] Review toolbar button and menu item to the default {productname} toolbar and menu.
To start using the Review feature, add `+tinymceai+` to the plugins configuration option. This will automatically add the image:icons-premium/ai-review.svg[Review icon,24px] Review toolbar button and menu item to the default {productname} toolbar and menu.

See xref:tinymceai.adoc[Plugin Reference] for more information regarding installation and enabling AI features.

Expand All @@ -42,7 +42,7 @@ While in the Review Mode, the editor remains read-only and allows browsing sugge

image::tinymceai/tinymce-ai-review-improve-readability-suggestion-cards-and-underlines.png[{pluginname} Review sidebar with suggestions,width=80%]

Review suggestions can be individually skipped or applied by clicking the corresponding buttons. Changes that were accepted or dismissed become greyed out in the interface. The "Complete" button in the top of the sidebar enables actions such as:
Review suggestions can be individually skipped or applied by clicking the corresponding buttons. Changes that were accepted or dismissed become grayed out in the interface. The "Complete" button in the top of the sidebar enables actions such as:

- Skipping or applying the remaining suggestions in bulk
- Completing the review with the currently applied suggestions (and skipping the rest)
Expand All @@ -63,20 +63,30 @@ Built-in system reviews are listed below. The **Editor** column is the label in

|**Improve readability** |Readability |Improve readability through sentence structure, paragraph structure, transitions, word choice, and reading level. |✓ |✓

|**Adjust length** |Length Optimization |Shorten or lengthen the text while preserving key information. The editor offers _Longer_ and _Shorter_ options. |✓ |✓
|**Change length** |Length Optimization |Shorten or lengthen the text while preserving key information. The editor offers _Longer_ and _Shorter_ options. |✓ |✓

|**Adjust tone and style** |Tone Adjustment |Adjust tone and style. The editor includes _Casual_, _Direct_, _Friendly_, _Confident_, and _Professional_ options. |✓ |✓

|**Custom review** |— |xref:tinymceai-review.adoc#custom-review-choose-review[Custom review]: custom prompt and model; streams like other reviews. |✓ |✓ (custom review calls endpoint)

| |Translation |Translate between languages with cultural adaptation. | |✓
|===

[NOTE]
====
* A checkmark in the Editor UI column means that review type can appear in the Review sidebar when it is listed in xref:tinymceai.adoc#tinymceai_reviews[`tinymceai_reviews`].
* Custom reviews (analysis defined with a prompt) are available through the xref:tinymceai-review.adoc#reviews-custom-reviews[Custom reviews (API)]. _Note: The same capability in the Review sidebar is coming soon._
* xref:tinymceai-review.adoc#custom-review-choose-review[Custom review] is included in the Review sidebar by default. The xref:tinymceai-review.adoc#reviews-custom-reviews[Custom reviews (API)] section describes the REST endpoint used for the same streaming review flow.
* Translation Review is API-only (not listed in the Review sidebar); see the xref:tinymceai-review.adoc#built-in-reviews[Translation row] in the table above. For translation from the editor, see **Translate** in xref:tinymceai-actions.adoc#quick-actions-reference-table[Quick Actions reference table].
====

[[custom-review-choose-review]]
== Custom review

The Review sidebar includes a **Custom review** category by default. A natural-language prompt can be entered, and an AI model can be selected when xref:tinymceai.adoc#tinymceai_allow_model_selection[`tinymceai_allow_model_selection`] allows it; the review runs from **Run**. The document is analyzed with streaming suggestions like xref:tinymceai-review.adoc#review-sidebar-and-built-in-reviews[built-in reviews]; **Run** remains disabled until the prompt is entered and a model is selected. To hide Custom review, remove `+'ai-reviews-custom'+` from xref:tinymceai.adoc#tinymceai_reviews[`tinymceai_reviews`].

[TIP]
The backend uses the custom review call (`POST /v1/reviews/custom/calls`) with `content`, `prompt`, and `model` in the request body. After a run completes, **Retry** in the Review UI can re-run the last review with the same parameters for both system and custom reviews.

[[review-configuration]]
== Configuration

Expand All @@ -92,7 +102,7 @@ The Review plugin feature is built on top of the Reviews API, which provides RES
Reviews use streaming output with Server-Sent Events for real-time feedback as suggestions are generated. Each review type is optimized for specific improvement tasks, providing consistent, high-quality analysis of text structure, style, and quality. Reviews provide specific, actionable recommendations for content improvement.

[[reviews-system-reviews-api]]
=== System Reviews
=== System reviews

System reviews are default review operations for common use cases, which each use the AI agent most suitable for their functionality. The API includes one endpoint for running system reviews, which is passed the review name.

Expand All @@ -103,26 +113,24 @@ For endpoint details, request and response schemas, authentication, and streamin
[[reviews-custom-reviews]]
=== Custom reviews (API)

Integrators can also define custom reviews using the Custom Review API endpoint, which returns a output in a similar manner to system reviews but which takes a custom prompt to define the analysis behavior. Custom reviews can be as simple as checking for specific words or phrases, or as complex as applying a company style guide that includes business logic, specific terminology, and more.

See https://tinymceai.api.tiny.cloud/docs#tag/Reviews[Reviews API] for the endpoint, parameters, and examples.
Integrators can also call the Custom Review API endpoint directly. It streams suggestions in the same way as system reviews but takes a custom `prompt` (and `model`) with document `content` in the request body. Custom reviews can be as simple as checking for specific words or phrases, or as complex as applying a company style guide that includes business logic, specific terminology, and more. See https://tinymceai.api.tiny.cloud/docs#tag/Reviews[Reviews API] for the endpoint, parameters, and examples.

The Review sidebar only exposes those built-in types for now; sidebar support for custom reviews is coming soon.
Users can also run custom reviews directly from the editor through the xref:tinymceai-review.adoc#custom-review-choose-review[Custom review] category in the Review sidebar.

Custom reviews require the `ai:reviews:custom` permission in the JWT token.

[[reviews-streaming]]
=== Streaming Responses
=== Streaming responses

Reviews use Server-Sent Events (SSE) for real-time streaming results. See the xref:tinymceai-streaming.adoc[Streaming Responses guide] for detailed implementation information.
Reviews use Server-Sent Events (SSE) for real-time streaming results. See the xref:tinymceai-streaming.adoc[Streaming responses guide] for detailed implementation information.

[[reviews-api-reference]]
=== API Reference
=== API reference

The https://tinymceai.api.tiny.cloud/docs#tag/Reviews[Reviews API] reference (interactive OpenAPI documentation) is the full source for endpoints, request and response schemas, authentication, system and custom review calls, worked examples, and streaming review responses.

[[related-features]]
== Related Features
== Related features

* xref:tinymceai-chat.adoc[AI chat]: For interactive discussions with document analysis and context.
* xref:tinymceai-actions.adoc[Quick actions]: Shortcuts to individual AI operations on a selection or range (transformations, translation, chat, and custom actions).
1 change: 0 additions & 1 deletion modules/ROOT/pages/tinymceai.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -140,4 +140,3 @@ The {pluginname} plugin provides the following {productname} commands.

include::partial$commands/{plugincode}-cmds.adoc[]


58 changes: 56 additions & 2 deletions modules/ROOT/partials/commands/tinymceai-cmds.adoc
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[[tinymceai-toggling-sidebars]]
.Toggling the AI Chat and AI Review sidebars
=== Toggling the AI Chat and AI Review sidebars

AI Chat and AI Review use sidebars registered by the plugin. To show or hide them programmatically, use the core `+ToggleSidebar+` command (listed in the xref:editor-command-identifiers.adoc#miscellaneous-core-commands[Miscellaneous Core Commands] table), not a command defined by the TinyMCE AI plugin. Pass the sidebar identifier as the third argument:
AI Chat and AI Review use sidebars registered by the plugin. To show or hide them programmatically, use the core `+ToggleSidebar+` command (listed in the xref:editor-command-identifiers.adoc#miscellaneous-core-commands[Miscellaneous Core Commands] table), not a command defined by the `+tinymceai+` plugin. Pass the sidebar identifier as the third argument:

* `+'tinymceai-chat'+` — AI Chat
* `+'tinymceai-review'+` — AI Review
Expand All @@ -18,3 +18,57 @@ tinymce.activeEditor.execCommand('ToggleSidebar', false, 'tinymceai-chat');
// Open the AI Review sidebar
tinymce.activeEditor.execCommand('ToggleSidebar', false, 'tinymceai-review');
----

NOTE: These commands work regardless of xref:tinymceai.adoc#tinymceai_sidebar_type[`tinymceai_sidebar_type`] (`+'static'+` or `+'floating'+`). The `+ToggleSidebar+` event and `+queryCommandValue('ToggleSidebar')+` also behave the same for both sidebar types.

[[tinymceai-plugin-commands]]
=== TinyMCE AI plugin commands

The xref:tinymceai.adoc[`tinymceai`] plugin registers the following editor commands. They mirror the Quick Actions and related UI: each invocation returns immediately while the plugin performs any network and UI work asynchronously.

[cols="2,2,3",options="header"]
|===
|Command |Third argument |Description

|`+TinyMCEAIQuickActionImproveWriting+` | |Runs the **Improve writing** quick action.
|`+TinyMCEAIQuickActionContinueWriting+` | |Runs the **Continue writing** quick action.
|`+TinyMCEAIQuickActionCheckGrammar+` | |Runs the **Fix grammar** quick action.
|`+TinyMCEAIQuickActionMakeShorter+` | |Runs **Make shorter**.
|`+TinyMCEAIQuickActionMakeLonger+` | |Runs **Make longer**.
|`+TinyMCEAIQuickActionToneCasual+` | |Runs **More casual** tone.
|`+TinyMCEAIQuickActionToneDirect+` | |Runs **More direct** tone.
|`+TinyMCEAIQuickActionToneFriendly+` | |Runs **More friendly** tone.
|`+TinyMCEAIQuickActionToneConfident+` | |Runs **More confident** tone.
|`+TinyMCEAIQuickActionToneProfessional+` | |Runs **More professional** tone.
|`+TinyMCEAIQuickActionTranslate+` |`+string+` |Runs **Translate** with the given language label (same string family as xref:tinymceai.adoc#tinymceai_languages[`tinymceai_languages`] `+language+` values).
|`+TinyMCEAIQuickActionCustom+` |`+{ prompt, model }+` |Runs a custom quick action with the given prompt and model (same behavior as xref:tinymceai.adoc#tinymceai_quickactions_custom[`tinymceai_quickactions_custom`] preview actions).
|`+TinyMCEAIQuickActionsExplain+` | |Opens Chat with the built-in **Explain** prompt.
|`+TinyMCEAIQuickActionsSummarize+` | |Opens Chat with the built-in **Summarize** prompt.
|`+TinyMCEAIQuickActionsHighlightKeyPoints+` | |Opens Chat with the built-in **Highlight key points** prompt.
|`+TinyMCEAIChatPrompt+` |`+{ prompt, displayedPrompt? }+` |Opens the Chat sidebar if needed, then sends `+prompt+` to the back end. Optional `+displayedPrompt+` controls the label shown in the chat UI when it differs from the text sent to the model.
|===

[NOTE]
====
Command names use the `+TinyMCEAIQuickActions…+` prefix (with an `+s+`) for **Explain**, **Summarize**, and **Highlight key points** — these map to the xref:tinymceai.adoc#tinymceai_quickactions_chat_prompts[chat prompts] submenu, not to standalone `+TinyMCEAIQuickAction…+` spellings.
====

.Example: translate and custom quick action
[source,js]
----
tinymce.activeEditor.execCommand('TinyMCEAIQuickActionTranslate', false, 'swedish');

tinymce.activeEditor.execCommand('TinyMCEAIQuickActionCustom', false, {
prompt: 'Uppercase text',
model: 'gpt-4.1'
});
----

.Example: chat prompt with a shorter label in the UI
[source,js]
----
tinymce.activeEditor.execCommand('TinyMCEAIChatPrompt', false, {
prompt: 'Explain the current selection in Klingon',
displayedPrompt: 'Explain'
});
----
24 changes: 24 additions & 0 deletions modules/ROOT/partials/configuration/content_language.adoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
[[content_language]]
== `content_language`

The `+content_language+` option sets the default content language of the editor by applying a `+lang+` attribute to the document element. In classic (iframe) mode, the attribute is set on the `+<html>+` element inside the editor's iframe. In inline mode, the attribute is set on the target element specified in the editor's `+selector+` option.

Setting this option helps meet accessibility standards such as link:https://www.w3.org/WAI/standards-guidelines/act/rules/b5c3f8/[WCAG Success Criterion 3.1.1 (Language of Page)], which requires that the default human language of a web page can be programmatically determined.

NOTE: This option is separate from the xref:ui-localization.adoc#language[`+language+`] option, which controls the language of the {productname} user interface. The `+content_language+` option controls only the language attribute of the editor content area.

When the xref:introduction-to-tiny-spellchecker.adoc[Spell Checker] plugin is active, it uses `+content_language+` as its default proofing language. If `+content_language+` is not set, the Spell Checker falls back to xref:introduction-to-tiny-spellchecker.adoc#spellchecker_language[`+spellchecker_language+`].

*Type:* `+String+`

*Default value:* Not set (`+undefined+`)

=== Example: using `content_language`

[source,js]
----
tinymce.init({
selector: 'textarea', // change this value according to your HTML
content_language: 'fr'
});
----
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
[[spellchecker_language]]
== `+spellchecker_language+`

IMPORTANT: This option has been marked as *deprecated* as of {productname} 8.5. It will be removed in a future major release. Use xref:content-localization.adoc#content_language[`+content_language+`] instead, which sets both the default content language and the Spell Checker proofing language.

This option specifies the default language used by Spell Checker.

*Type:* `+String+`
Expand Down
Loading
Loading