Skip to content

TINYDOC-3570: New option tinymceai_chat_default_sources to allow specifying predefined sources as chat default context. - #4306

Draft
kemister85 wants to merge 1 commit into
feature/8.9/TINYDOC-3570from
feature/8.9/TINYDOC-3570_TINYMCE-14703
Draft

TINYDOC-3570: New option tinymceai_chat_default_sources to allow specifying predefined sources as chat default context.#4306
kemister85 wants to merge 1 commit into
feature/8.9/TINYDOC-3570from
feature/8.9/TINYDOC-3570_TINYMCE-14703

Conversation

@kemister85

@kemister85 kemister85 commented Aug 11, 2026

Copy link
Copy Markdown
Contributor

Ticket: TINYDOC-3570 (TINYMCE-14703), TINYDOC-3561

Site: Staging

Changes:

  • Added release note entry for TINYMCE-14703 to modules/ROOT/pages/8.9.0-release-notes.adoc.
  • Added the tinymceai_chat_default_sources section to modules/ROOT/partials/configuration/tinymceai_options.adoc`, under Options for Chat (TINYDOC-3561).
  • Added tinymceai_chat_default_sources to the complete setup example in modules/ROOT/pages/tinymceai.adoc.
  • Added a cross-reference to the new option from Adding custom context sources in modules/ROOT/pages/tinymceai-chat.adoc.

Pre-checks:

  • Branch is correctly prefixed (release-note branch)
  • Files have been included where required (if applicable).
  • Build passes without console errors, warnings, or issues.

Review:

  • Documentation Team Lead has reviewed.

…8.9.0 release note

Documents the new TinyMCE AI chat option and adds the accompanying release
note entry for the 8.9.0 release.

Covers TINYDOC-3561 (option reference section) and TINYMCE-14703.
@kemister85 kemister85 added this to the TinyMCE 8.9.0 milestone Aug 11, 2026
@kemister85 kemister85 added the upcoming release Documentation for features currently under development/QA label Aug 11, 2026

@tiny-ben-tran tiny-ben-tran left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ShiridiGandham @metricjs Should this option be included in the ai demo?

==== New option `tinymceai_chat_default_sources` to allow specifying predefined sources as chat default context.
// #TINYMCE-14703

Previously, the **TinyMCE AI** plugin applied only the current document to the context of a new AI Chat conversation. Users had to add every other context source, such as a style guide or a reference document, to each new conversation by hand.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Previously, the **TinyMCE AI** plugin applied only the current document to the context of a new AI Chat conversation. Users had to add every other context source, such as a style guide or a reference document, to each new conversation by hand.
Previously, the **TinyMCE AI** plugin applied only the current document to the context of a new AI Chat conversation. Users had to manually add every other context source, such as a style guide or a reference document, to each new conversation.


Previously, the **TinyMCE AI** plugin applied only the current document to the context of a new AI Chat conversation. Users had to add every other context source, such as a style guide or a reference document, to each new conversation by hand.

In {productname} {release-version}, the **TinyMCE AI** plugin supports the xref:tinymceai.adoc#tinymceai_chat_default_sources[`+tinymceai_chat_default_sources+`] option. The option accepts an array of source identifiers taken from the list supplied by xref:tinymceai.adoc#tinymceai_chat_fetch_sources[`+tinymceai_chat_fetch_sources+`], and the plugin applies those sources to the context of every new conversation. Users can remove a default source from a conversation and add it again from the sources menu.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
In {productname} {release-version}, the **TinyMCE AI** plugin supports the xref:tinymceai.adoc#tinymceai_chat_default_sources[`+tinymceai_chat_default_sources+`] option. The option accepts an array of source identifiers taken from the list supplied by xref:tinymceai.adoc#tinymceai_chat_fetch_sources[`+tinymceai_chat_fetch_sources+`], and the plugin applies those sources to the context of every new conversation. Users can remove a default source from a conversation and add it again from the sources menu.
In {productname} {release-version}, the **TinyMCE AI** plugin supports the xref:tinymceai.adoc#tinymceai_chat_default_sources[`+tinymceai_chat_default_sources+`] option. The option accepts an array of source identifiers from xref:tinymceai.adoc#tinymceai_chat_fetch_sources[`+tinymceai_chat_fetch_sources+`], and the plugin applies those sources to the context of every new conversation. A default source can be removed or added again from the sources menu.

[[tinymceai_chat_default_sources]]
=== `+tinymceai_chat_default_sources+`

Adds one or more sources to the context of every new chat conversation, alongside the current document. Without this option, users add each source to a conversation themselves.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Adds one or more sources to the context of every new chat conversation, alongside the current document. Without this option, users add each source to a conversation themselves.
Adds one or more predefined sources as the default context to a chat conversation, alongside the current document. The sources can be removed or re-added from the sources menu.


Adds one or more sources to the context of every new chat conversation, alongside the current document. Without this option, users add each source to a conversation themselves.

Takes an array of source identifiers. Each identifier is the `+id+` of a source supplied by xref:tinymceai.adoc#tinymceai_chat_fetch_sources[`tinymceai_chat_fetch_sources`], and the content of each source is loaded through xref:tinymceai.adoc#tinymceai_chat_fetch_source[`tinymceai_chat_fetch_source`]. Identifiers that do not match a supplied source are ignored.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Takes an array of source identifiers. Each identifier is the `+id+` of a source supplied by xref:tinymceai.adoc#tinymceai_chat_fetch_sources[`tinymceai_chat_fetch_sources`], and the content of each source is loaded through xref:tinymceai.adoc#tinymceai_chat_fetch_source[`tinymceai_chat_fetch_source`]. Identifiers that do not match a supplied source are ignored.
Takes an array of source identifiers. Each identifier is the `+id+` of a source predefined in xref:tinymceai.adoc#tinymceai_chat_fetch_sources[`tinymceai_chat_fetch_sources`], and the content of each source is loaded through xref:tinymceai.adoc#tinymceai_chat_fetch_source[`tinymceai_chat_fetch_source`]. A invalid identified is will be ignored.


Takes an array of source identifiers. Each identifier is the `+id+` of a source supplied by xref:tinymceai.adoc#tinymceai_chat_fetch_sources[`tinymceai_chat_fetch_sources`], and the content of each source is loaded through xref:tinymceai.adoc#tinymceai_chat_fetch_source[`tinymceai_chat_fetch_source`]. Identifiers that do not match a supplied source are ignored.

Users can remove a default source from a conversation and add it again from the sources menu.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Users can remove a default source from a conversation and add it again from the sources menu.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

upcoming release Documentation for features currently under development/QA

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants