Skip to content

TINYDOC-3562 - Document beforeSetContent listener for AI-only revision history#4291

Open
kemister85 wants to merge 1 commit into
tinymce/8from
hotfix/8/TINYDOC-3562
Open

TINYDOC-3562 - Document beforeSetContent listener for AI-only revision history#4291
kemister85 wants to merge 1 commit into
tinymce/8from
hotfix/8/TINYDOC-3562

Conversation

@kemister85

@kemister85 kemister85 commented Jul 24, 2026

Copy link
Copy Markdown
Contributor

Ticket: TINYDOC-3562

Site: Staging branch

Changes:

  • Add a "Capturing content before and after an AI edit" subsection to the "Saving an AI-assisted revision" section of revisionhistory.adoc.
  • Document listening for the BeforeSetContent event and checking e.ai to capture the latest non-AI (human) content via editor.getContent() and store it as a revision before the AI-generated content is inserted.
  • Pair the new BeforeSetContent example with the existing SetContent example so integrators can save a clean pre-AI revision alongside the post-AI, AI-assisted revision for finer-grained history.
  • Clarify that listening for BeforeSetContent is optional — integrators can use SetContent alone or pair both events, depending on their use case.

Pre-checks:

  • Branch is correctly prefixed: hotfix/8/TINYDOC-3562
  • Files have been included where required (if applicable).
  • Build passes without console errors, warnings, or issues.

Prepared for documentation team review.

@kemister85
kemister85 requested a review from metricjs July 24, 2026 05:59
@kemister85
kemister85 marked this pull request as ready for review July 24, 2026 06:01
@kemister85
kemister85 requested review from a team and soritaheng as code owners July 24, 2026 06:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant