[Feature]: Issue 300 | Content Resizing#331
[Feature]: Issue 300 | Content Resizing#331TylerB24890 wants to merge 8 commits intoWordPress:developfrom
Conversation
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## develop #331 +/- ##
=============================================
+ Coverage 57.85% 58.09% +0.24%
- Complexity 615 637 +22
=============================================
Files 46 49 +3
Lines 3165 3272 +107
=============================================
+ Hits 1831 1901 +70
- Misses 1334 1371 +37
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
… not require PHP processing.
|
@jeffpaul I took a stab at this and have a functional experiment here, however I took a slightly different approach from the described UI in the issue. I opt'd to use a modal UI for accepting the resized content, similar to the SEO Meta Descriptions UI. One thing I think could improve the experience would be to add a direct comparison UI, perhaps render the original content in the modal so editors can see both side by side? Open to your thoughts here. Also might need some improvement on the |
Yeah, that could be nice, perhaps noting the +/- on characters/words as well?
@Sidsector9 I know you've done work on this elsewhere, any advice on how to best retain that content/context? |
https://github.com/WordPress/ai/blob/develop/.wordpress-org/icon.svg
|


What?
Closes #300
This feature allows authors to select existing text blocks and use AI to modify their length or density without changing the core meaning with an Inline Transformation flow.
Why?
Editors often struggle with pacing. A section might be too verbose (needs condensing) or a key point might feel underdeveloped (needs expanding). This tool acts as an instantaneous editor.
How?
This PR applies a new experiment "Content Resizing" which, when enabled, adds a toolbar to the
core/paragraphblock with various options to have AI resize the content. There are three options available; Rephrase, Shorten, Expand.When the block has AI generated content applied, the toolbar button applies an active state providing a visual cue that the block is using AI content. Additionally, an "Undo" action is added to the toolbar dropdown, allowing editors to undo the AI generated content and revert to the original content.
Use of AI Tools
Testing Instructions
Screenshots or screencast
Suggested Content:

Undo Action
