Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
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
26 changes: 26 additions & 0 deletions modules/ROOT/images/tinymce-agent-skill/documentation-loop.mmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
%%{init: {"theme": "base", "fontFamily": "Inter, -apple-system, BlinkMacSystemFont, Helvetica, Arial, sans-serif", "themeCSS": ".nodeLabel, .edgeLabel { font-family: Inter, -apple-system, BlinkMacSystemFont, Helvetica, Arial, sans-serif; }", "themeVariables": {"fontFamily": "Inter, -apple-system, BlinkMacSystemFont, Helvetica, Arial, sans-serif", "fontSize": "14px", "primaryColor": "#ffffff", "primaryBorderColor": "#335dff", "primaryTextColor": "#17224f", "lineColor": "#747b94", "edgeLabelBackground": "#ffffff"}, "flowchart": {"useMaxWidth": false, "curve": "basis", "nodeSpacing": 28, "rankSpacing": 26, "padding": 8, "wrappingWidth": 200}}}%%
flowchart LR
Rules(["<b>Request</b>"]):::ask
Need{{"Skill rules:<br>fact needed?"}}:::decide
Docs[("<b>Read the docs</b><br>installed version:<br>AGENTS.md, sitemap.md,<br>manifest, MCP")]:::docs
Write["<b>Write or<br>change config</b>"]:::step
Check{{"Build, types,<br>checker"}}:::check
Run{{"Health<br>check"}}:::check
Done(["<b>Report</b>"]):::good
Rules --> Need
Need -->|"version-specific<br>or changed"| Docs
Need -->|"bundled,<br>unchanged"| Write
Docs --> Write --> Check
Check -->|"clean"| Run
Run -->|"pass"| Done
Check -->|"finding"| Docs
Run -->|"problem"| Docs
classDef ask fill:#17224f,stroke:#17224f,color:#ffffff
classDef decide fill:#eef1ff,stroke:#335dff,color:#17224f
classDef step fill:#ffffff,stroke:#335dff,color:#17224f,stroke-width:1.5px
classDef check fill:#fff4e5,stroke:#e18114,color:#17224f,stroke-width:1.5px
classDef good fill:#e8f6e9,stroke:#41af46,color:#17224f,stroke-width:1.5px
classDef docs fill:#eef1ff,stroke:#6686ff,color:#17224f
linkStyle 6 stroke:#41af46,stroke-width:2px
linkStyle 7 stroke:#e18114,stroke-width:2px
linkStyle 8 stroke:#e18114,stroke-width:2px
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
%%{init: {"theme": "base", "fontFamily": "Inter, -apple-system, BlinkMacSystemFont, Helvetica, Arial, sans-serif", "themeVariables": {"fontFamily": "Inter, -apple-system, BlinkMacSystemFont, Helvetica, Arial, sans-serif", "fontSize": "14px", "actorBkg": "#17224f", "actorBorder": "#17224f", "actorTextColor": "#ffffff", "actorLineColor": "#c6ccdc", "signalColor": "#17224f", "signalTextColor": "#17224f", "noteBkgColor": "#ffffff", "noteBorderColor": "#a0aac5", "noteTextColor": "#17224f", "sequenceNumberColor": "#ffffff"}, "sequence": {"useMaxWidth": false, "mirrorActors": false, "actorMargin": 16, "width": 110, "height": 40, "boxMargin": 4, "messageMargin": 16, "noteMargin": 6, "messageFontSize": 14, "noteFontSize": 13, "wrap": false}}}%%
sequenceDiagram
autonumber
participant Dev as Developer
participant Agent as Agent + skill
participant Proj as Project
participant Docs as Docs
participant Check as Checker
participant Web as Browser
Dev->>Agent: "Add comments"
rect rgb(249, 249, 251)
Note over Agent,Web: Read before writing
Agent->>Proj: Read setup
Proj-->>Agent: 8.10, Cloud, React
Agent->>Docs: Comments page, version 8
Docs-->>Agent: Needs tinycomments_mode
Agent->>Check: Check current configuration
Check-->>Agent: Baseline: no errors
end
Agent-->>Dev: Plan: embedded mode
rect rgb(238, 241, 255)
Note over Agent,Web: Change the minimum: plugin, buttons, tinycomments_mode
Agent->>Proj: Add plugin
end
rect rgb(232, 246, 233)
Note over Agent,Web: Verify
Agent->>Check: Check changed configuration
Check-->>Agent: No new findings
Agent->>Web: Run the health check
Web-->>Agent: Editable, plugin loaded
end
Agent-->>Dev: Report and links
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
33 changes: 33 additions & 0 deletions modules/ROOT/images/tinymce-agent-skill/example-upgrade.mmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
%%{init: {"theme": "base", "fontFamily": "Inter, -apple-system, BlinkMacSystemFont, Helvetica, Arial, sans-serif", "themeCSS": ".nodeLabel, .edgeLabel, .cluster-label { font-family: Inter, -apple-system, BlinkMacSystemFont, Helvetica, Arial, sans-serif; }", "themeVariables": {"fontFamily": "Inter, -apple-system, BlinkMacSystemFont, Helvetica, Arial, sans-serif", "fontSize": "15px", "primaryColor": "#ffffff", "primaryBorderColor": "#335dff", "primaryTextColor": "#17224f", "lineColor": "#747b94", "clusterBkg": "#f9f9fb", "clusterBorder": "#c6ccdc", "titleColor": "#17224f", "edgeLabelBackground": "#f9f9fb"}, "flowchart": {"useMaxWidth": false, "subGraphTitleMargin": {"top": 6, "bottom": 10}, "curve": "basis", "nodeSpacing": 24, "rankSpacing": 34, "padding": 10, "wrappingWidth": 170}}}%%
flowchart TB
Req(["<b>Request</b><br><i>Upgrade this project<br>from TinyMCE 6<br>to TinyMCE 8</i>"]):::ask
subgraph before["<b>Before changing anything</b>"]
direction LR
S1["<b>1 · Record the baseline</b><br>version, every editor,<br>plugins, toolbar, content"]:::step
S2["<b>2 · Confirm</b><br>target version and<br>license decision"]:::decide
S1 --> S2
end
subgraph plan["<b>Plan the upgrade</b>"]
direction LR
S3["<b>3 · Worklist</b><br>checker in upgrade mode<br>lists every change"]:::check
S4[("<b>4 · Read</b><br>migration guide<br>and release notes")]:::docs
S5["<b>5 · Checklist</b><br>each change, with<br>its file and line"]:::step
S3 --> S4 --> S5
end
subgraph apply["<b>Change and verify</b>"]
direction LR
S6["<b>6 · Apply</b><br>packages, wrapper,<br>license, each change"]:::step
S7["<b>7 · Verify</b><br>build, checker,<br>compare with baseline"]:::check
S8(["<b>8 · Report</b><br>what changed,<br>what is left"]):::good
S6 --> S7 -->|"nothing lost"| S8
S7 -->|"lost feature<br>or error"| S6
end
Req --> before
before -->|"developer<br>decides"| plan
plan --> apply
classDef ask fill:#17224f,stroke:#17224f,color:#ffffff
classDef decide fill:#eef1ff,stroke:#335dff,color:#17224f
classDef step fill:#ffffff,stroke:#335dff,color:#17224f,stroke-width:1.5px
classDef check fill:#fff4e5,stroke:#e18114,color:#17224f,stroke-width:1.5px
classDef good fill:#e8f6e9,stroke:#41af46,color:#17224f,stroke-width:1.5px
classDef docs fill:#eef1ff,stroke:#6686ff,color:#17224f
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions modules/ROOT/nav.adoc
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
* xref:getting-started.adoc[Getting started]
** xref:introduction-to-tinymce.adoc[Introduction to {productname}]
** xref:ai-coding-agents.adoc[Connect AI agents to the documentation]
** xref:tinymce-agent-skill.adoc[{productname} agent skill]
** xref:installation.adoc[Installation]
*** xref:installation-cloud.adoc[Cloud]
**** xref:cloud-quick-start.adoc[Quick start guide]
Expand Down
32 changes: 23 additions & 9 deletions modules/ROOT/pages/ai-coding-agents.adoc
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
= Connecting AI coding agents to the {productname} documentation
:navtitle: Connect AI agents to the documentation
:description: Give AI coding agents access to the {productname} documentation through the documentation MCP server, Context7, markdown pages, and llms.txt files.
:description: Give AI coding agents access to the {productname} documentation through the documentation MCP server, Context7, markdown pages, AGENTS.md, and llms.txt files.
:description_short: Give AI coding agents access to the {productname} documentation.
:keywords: ai, mcp, model context protocol, coding agent, claude code, cursor, codex, copilot, visual studio code, context7, llms.txt, markdown
:keywords: ai, mcp, model context protocol, coding agent, claude code, cursor, codex, copilot, visual studio code, context7, llms.txt, llms-full.txt, agents.md, sitemap.md, changes.json, markdown manifest, markdown

An AI coding agent works from its training data unless it is given something better. This page describes four ways to put the current {productname} documentation in front of an agent. They are alternatives rather than steps, and any of them can be used together. Each applies to any {productname} installation, whether it is served from the {cloudname} or self-hosted.

* xref:#connect-the-documentation-mcp-server[{productname} documentation MCP server] -- a hosted https://modelcontextprotocol.io/[Model Context Protocol] (MCP) server that serves this documentation and nothing else. Suits any agent that supports MCP.
* xref:#context7[Context7] -- a general-purpose documentation MCP server that also indexes the {productname} documentation. Suits an agent already using Context7 for other libraries.
* xref:#read-the-documentation-as-markdown[Markdown pages] -- every documentation page is also published as markdown at its own URL. Suits an agent without MCP support, or a prompt that already names the page.
* xref:#llms-txt-files[`+llms.txt+` files] -- two plain text summaries of the whole documentation set, for an agent that accepts a single bulk reference.
* xref:#llms-txt-files[Documentation files for AI tools] -- `+AGENTS.md+`, `+llms.txt+`, `+llms-full.txt+`, and index files that let an agent find, size, and cite pages. Suits an agent that reads the documentation directly, or accepts a single bulk reference.

TIP: To add {productname} to a project with an AI coding agent, see the xref:cloud-quick-start-ai.adoc[{cloudname} AI quick start guide].
TIP: To add {productname} to a project with an AI coding agent, see the xref:cloud-quick-start-ai.adoc[{cloudname} AI quick start guide]. To teach an agent how to install, configure, upgrade, and troubleshoot {productname} in any project, see xref:tinymce-agent-skill.adoc[Using the {productname} agent skill].

[[connect-the-documentation-mcp-server]]
== Connect the {productname} documentation MCP server
Expand Down Expand Up @@ -182,24 +182,38 @@ Markdown is available for every documented version of {productname}, not only th
https://www.tiny.cloud/docs/tinymce/7/basic-setup/index.md
----

The current major version is always served from `+latest+`. A request for that version by number, such as `+/docs/tinymce/{productmajorversion}/basic-setup/index.md+`, redirects to its `+latest+` address, so an agent retrieving markdown by version number needs to follow redirects. Earlier versions are served directly.
The current major version is always served from `+latest+`. A request for that version by number, such as `/docs/tinymce/{productmajorversion}/basic-setup/index.md`, redirects to its `+latest+` address, so an agent retrieving markdown by version number needs to follow redirects. Earlier versions are served directly.

Each markdown page starts with front matter that records the page's title, description, canonical address, markdown address, version, last updated date, and token count, so an agent can cite the page and the version it describes.

Each page also includes a *Copy Markdown* button next to the page title, which copies the markdown URL of the current page to the clipboard for pasting into an agent prompt.

[[llms-txt-files]]
== llms.txt files
== Documentation files for AI tools

Two plain text files provide the documentation set for agents that accept a single bulk reference. Both files cover the latest release:
The documentation publishes a set of files for agents and tools that read it directly. Start with `+AGENTS.md+`, which explains how to use the others.

[cols="1,3",options="header"]
|===
|File |Contents

|https://www.tiny.cloud/docs/AGENTS.md[`+AGENTS.md+`]
|A one-page guide for AI agents: the license key requirement, how versions work, how to retrieve any page as markdown and cite it, and how to choose pages without reading everything.

|https://www.tiny.cloud/docs/llms.txt[`+llms.txt+`]
|A concise overview of {productname}, with key links and code examples.
|A concise overview of {productname}, with key links and setup examples. It states which versions it covers and links to the other files in this table.

|https://www.tiny.cloud/docs/llms-full.txt[`+llms-full.txt+`]
|The full content of every documentation page, grouped by topic, with each page's URL and last updated date.
|The full content of every {productname} {productmajorversion} page in one file, grouped by topic, with each page's URL and last updated date.

|https://www.tiny.cloud/docs/sitemap.md[`+sitemap.md+`]
|The navigation tree of the {productname} {productmajorversion} documentation, with each page's description and last updated date, for finding the right page.

|https://www.tiny.cloud/docs/_markdown-manifest.json[`+_markdown-manifest.json+`]
|Every page on every version, with its title, description, markdown URL, last updated date, and token count, for estimating the size of a fetch before making it. The file is large: filter it in code rather than reading it whole.

|https://www.tiny.cloud/docs/changes.json[`+changes.json+`]
|The 500 most recently changed pages, newest first, for refreshing a cached copy of the documentation without reading every page again.
|===

[[feedback]]
Expand Down
31 changes: 26 additions & 5 deletions modules/ROOT/pages/cloud-quick-start-ai.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@
:keywords: quick start, ai, agent skill, agent skills, coding agent, mcp, model context protocol, claude code, cursor, codex, copilot, context7, kapa, cloud
:productSource: cloud

{productname} {productmajorversion} is a powerful and flexible rich text editor that can be embedded in web applications. This quick start covers how to add a {productname} editor to an application by installing the official https://github.com/tinymce/tinymce-ai-skills[{productname} agent skill] and letting an AI coding agent perform the setup.
{productname} {productmajorversion} is a powerful and flexible rich text editor that can be embedded in web applications. This quick start covers how to add a {productname} editor to an application by installing the official https://github.com/tinymce/tinymce-ai-skills[`+tinymce-setup+` agent skill] and letting an AI coding agent perform the setup.

TIP: For the equivalent step-by-step setup without an AI coding agent, see the xref:cloud-quick-start.adoc[{cloudname} quick start guide].

[[install-the-skill]]
== Install the {productname} skill
== Install the tinymce-setup skill

The official {productname} skill teaches an AI coding agent how to add {productname} to a project. From the project directory, install it into the agent (Claude Code, Codex, Cursor, GitHub Copilot, and others) with a single command:
The official `+tinymce-setup+` skill teaches an AI coding agent how to add {productname} to a project. From the project directory, install it into the agent (Claude Code, Codex, Cursor, GitHub Copilot, and others) with a single command:

[source,bash]
----
Expand Down Expand Up @@ -46,6 +46,25 @@ The result is an editor configured for the project at hand, rather than a generi

include::partial$install/approve-domain-cloud.adoc[]

[[install-the-tinymce-agent-skill]]
== Keep working with the {productname} agent skill

The `+tinymce-setup+` skill handles the first-time setup. For everything that comes after it, install the {productname} agent skill from the https://github.com/tinymce/skills[`+tinymce/skills+`] repository in the same project:

[source,bash]
----
npx skills add tinymce/skills
----

Once the editor is running, the {productname} agent skill takes over. It reuses what the setup established, such as the framework, the API key location, and the plugins, so the agent does not ask again. It covers:

* Adding plugins and features to the editor without regenerating the configuration.
* Moving from the {cloudname} to self-hosted, and setting up on-premises premium services.
* Upgrading {productname}, and fixing errors that start after a version change.
* Fixing an editor that is read-only, blank, or missing features.

Before reporting a change as finished, the agent checks it with the configuration checker and runtime health check that ship with the skill. See xref:tinymce-agent-skill.adoc[Using the {productname} agent skill].

[[connect-live-documentation]]
== Configure further using live documentation

Expand All @@ -61,7 +80,7 @@ Connect one of the following https://modelcontextprotocol.io/[Model Context Prot
|Semantic search across the published {productname} documentation, returning relevant extracts with links to their source pages. For the per-agent configuration files, see xref:ai-coding-agents.adoc#connect-the-documentation-mcp-server[Connect the {productname} documentation MCP server].

|https://context7.com/tinymce/tinymce-docs[Context7]
|A general-purpose documentation MCP server. Point it at the `+/tinymce/tinymce-docs+` library to serve version-specific {productname} documentation to the agent. The skill checks for Context7 before generating code, so this is the server it uses when both are available. For the setup steps, see xref:ai-coding-agents.adoc#context7[Connect Context7].
|A general-purpose documentation MCP server. Point it at the `+/tinymce/tinymce-docs+` library to serve version-specific {productname} documentation to the agent. The `+tinymce-setup+` skill checks for Context7 before generating code, so this is the server it uses when both are available. For the setup steps, see xref:ai-coding-agents.adoc#context7[Connect Context7].
|===

To connect the {productname} documentation MCP server, point the agent's MCP client at the following endpoint and complete the one-time OAuth sign-in:
Expand All @@ -80,6 +99,8 @@ ____
Add the Table and Word Count plugins, and put a word counter in the status bar.
____

Agents that do not support MCP can read the documentation as markdown or from the `+llms.txt+` files instead. See xref:ai-coding-agents.adoc#read-the-documentation-as-markdown[Read the documentation as markdown] and xref:ai-coding-agents.adoc#llms-txt-files[llms.txt files].
With the xref:#install-the-tinymce-agent-skill[{productname} agent skill] installed, the agent adds each plugin together with its toolbar button and any option the plugin requires, leaves the rest of the configuration as it is, and runs the skill's checks before reporting back.

Agents that do not support MCP can read the documentation as markdown, starting from `+AGENTS.md+`, or from the `+llms.txt+` files instead. See xref:ai-coding-agents.adoc#read-the-documentation-as-markdown[Read the documentation as markdown] and xref:ai-coding-agents.adoc#llms-txt-files[Documentation files for AI tools].

include::partial$misc/quickstart-next-steps.adoc[]
5 changes: 4 additions & 1 deletion modules/ROOT/pages/getting-started.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,11 @@ xref:ai-coding-agents.adoc[Connect AI agents to the documentation]

Give AI coding agents access to the {productname} documentation using the documentation MCP server, Context7, markdown pages, and `+llms.txt+` files.

// Empty cell to even out rows
|
[.lead]
xref:tinymce-agent-skill.adoc[{productname} agent skill]

Install the {productname} agent skill, which teaches AI coding agents how to install, configure, upgrade, and troubleshoot {productname}.

|===

Expand Down
Loading
Loading