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.
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
34 changes: 25 additions & 9 deletions modules/ROOT/pages/cloud-quick-start-ai.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -5,25 +5,27 @@
: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 a first-time setup with the {cloudname}: installing the official https://github.com/tinymce/tinymce-ai-skills[`+tinymce-setup+` agent skill] and letting an AI coding agent add a {productname} editor to an application. For a self-hosted installation, an existing editor, or an upgrade, see xref:tinymce-agent-skill.adoc[Using the {productname} agent skill].

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 {productname} skills

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, and the xref:tinymce-agent-skill.adoc[{productname} agent skill] handles the work after that. From the project directory, install both into the agent (Claude Code, Codex, Cursor, GitHub Copilot, and others) with a single command:

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

The installer downloads the skill, detects the agents present in the project, and writes the skill to each. Cloning the repository beforehand is not required. The skill uses the open https://agentskills.io/[Agent Skills] format, so it works in any agent that supports that format.
When the installer asks which skills to install, choose *Select All*, or press Ctrl+A, then press Enter. When an AI coding agent runs the command, it installs both skills without asking.

Once installed, the skill loads on its own whenever the agent is asked to install, set up, configure, or troubleshoot {productname}. No extra prompting is required.
The installer downloads the skills, detects the agents present in the project, and writes the skills to each. Cloning the repository beforehand is not required. The skills use the open https://agentskills.io/home[Agent Skills] format, so they work in any agent that supports that format.

To install without the command-line interface, follow the per-agent instructions under *Manual installation* in the https://github.com/tinymce/tinymce-ai-skills[tinymce-ai-skills README]. Report guidance that is wrong, outdated, or missing from the skill by https://github.com/tinymce/tinymce-ai-skills/issues[opening an issue] in the same repository.
Once installed, the skills load on their own whenever the agent is asked to install, set up, configure, or troubleshoot {productname}. No extra prompting is required.

To install without the command-line interface, follow the per-agent instructions under *Manual installation* in the https://github.com/tinymce/tinymce-ai-skills[tinymce-ai-skills README]. Report guidance that is wrong, outdated, or missing from the skills by https://github.com/tinymce/tinymce-ai-skills/issues[opening an issue] in the same repository.

[[add-the-editor]]
== Add {productname} to an application
Expand All @@ -46,10 +48,22 @@ 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

Once the editor is running, the {productname} agent skill installed alongside `+tinymce-setup+` handles all later work: adding features, moving to self-hosted, upgrading, and troubleshooting. It reuses what the setup established, so the agent does not ask again. If only `+tinymce-setup+` was selected during installation, add it with:

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

See xref:tinymce-agent-skill.adoc[Using the {productname} agent skill].

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

Taking the configuration deeper, by adding plugins, tailoring toolbars and menus, or refining behavior against the current API, is more reliable when the agent reads the published documentation instead of relying on its training data. The sections below cover the main options; for all four, including the per-agent configuration files, see xref:ai-coding-agents.adoc[Connect AI agents to the documentation].
Taking the configuration deeper, by adding plugins, tailoring toolbars and menus, or refining behavior against the current API, is more reliable when the agent reads the published documentation instead of relying on its training data. The table below covers the two MCP servers; for all four options, including the per-agent configuration files, see xref:ai-coding-agents.adoc[Connect AI agents to the documentation].

Connect one of the following https://modelcontextprotocol.io/[Model Context Protocol] (MCP) servers:

Expand All @@ -61,7 +75,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 +94,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[]
7 changes: 5 additions & 2 deletions modules/ROOT/pages/getting-started.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,13 @@ Learn how to install {productname} via {cloudname}, package managers, self-hoste
[.lead]
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.
Give AI coding agents access to the {productname} documentation using the documentation MCP server, Context7, markdown pages, `+AGENTS.md+`, 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