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
Conversation
…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.
tiny-ben-tran
approved these changes
Aug 11, 2026
tiny-ben-tran
left a comment
Contributor
There was a problem hiding this comment.
@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. |
Contributor
There was a problem hiding this comment.
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. |
Contributor
There was a problem hiding this comment.
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. |
Contributor
There was a problem hiding this comment.
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. |
Contributor
There was a problem hiding this comment.
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. |
Contributor
There was a problem hiding this comment.
Suggested change
| Users can remove a default source from a conversation and add it again from the sources menu. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Ticket: TINYDOC-3570 (TINYMCE-14703), TINYDOC-3561
Site: Staging
Changes:
modules/ROOT/pages/8.9.0-release-notes.adoc.tinymceai_chat_default_sourcessection to modules/ROOT/partials/configuration/tinymceai_options.adoc`, under Options for Chat (TINYDOC-3561).tinymceai_chat_default_sourcesto the complete setup example inmodules/ROOT/pages/tinymceai.adoc.modules/ROOT/pages/tinymceai-chat.adoc.Pre-checks:
Branch is correctly prefixed(release-note branch)Review: