Skip to content

feat(ios): apply Writing Tools results inline in the editor - #938

Open
dcalhoun wants to merge 1 commit into
trunkfrom
fix/writing-tools-complete-experience
Open

dcalhoun wants to merge 1 commit into
trunkfrom
fix/writing-tools-complete-experience

Conversation

@dcalhoun

@dcalhoun dcalhoun commented Nov 23, 2026 •

Copy link
Copy Markdown
Member

Description

Closes #955. Closes CMM-2952.

Request the complete Writing Tools experience for the editor's web view. WKWebView otherwise uses the limited experience, so Rewrite and Proofread results appear only in a separate Copy/Replace panel instead of in the post. Reported by a Jetpack iOS user.

Before After
Before: Proofread results in a Copy/Replace panel After: Proofread applied inline with undo controls

Known limitation: Writing Tools drops existing inline formatting (bold, links) in the changed text. This also occurs in Gutenberg in wp-admin and without this change, so it's out of scope here.

Known limitation: The Writing Tools undo button reverts only the most recent change (e.g., the last Proofread correction). Post content stays in sync, and the editor's own undo/redo reverts every change.

Testing instructions

Requires a device with Apple Intelligence enabled (iOS 18+); Writing Tools is unavailable in the Simulator.

  1. Open an editor in the demo app.
  2. Add a paragraph, select its text, and run Writing Tools > Proofread or Rewrite.
  3. Verify the changes apply inline in the paragraph with undo controls, rather than in a Copy/Replace panel.
  4. Save, reopen the post, and verify the changes persisted.

🤖 Generated with Claude Code

WKWebView defaults to the limited Writing Tools experience, so Rewrite and
Proofread results appeared only in a Copy/Replace panel. Requesting the
complete experience applies them in the post, matching Notes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@github-actions github-actions Bot added the [Type] Bug An existing feature does not function as intended label Nov 23, 2026
@wpmobilebot

Copy link
Copy Markdown

XCFramework Build

This PR's XCFramework is available for testing. Add the following to your Package.swift:

.package(url: "https://github.com/wordpress-mobile/GutenbergKit", branch: "pr-build/938")

Built from dffc522

@dcalhoun dcalhoun changed the title fix(ios): show Writing Tools results inline in the editor feat(ios): apply Writing Tools results inline in the editor Nov 30, 2026
@dcalhoun dcalhoun added [Type] Enhancement A suggestion for improvement. and removed [Type] Bug An existing feature does not function as intended labels Nov 30, 2026
@dcalhoun
dcalhoun marked this pull request as ready for review November 30, 2026 16:49
@dcalhoun
dcalhoun requested a review from crazytonyli November 30, 2026 16:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

[Type] Enhancement A suggestion for improvement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Apply Writing Tools results inline in the iOS editor

2 participants