Skip to content

Try content suggestion in block note - #76898

Closed
aswasif007 wants to merge 16 commits into
WordPress:trunkfrom
aswasif007:try/block-note-suggestion
Closed

aswasif007 wants to merge 16 commits into
WordPress:trunkfrom
aswasif007:try/block-note-suggestion

Conversation

@aswasif007

Copy link
Copy Markdown
Contributor

WIP

@github-actions github-actions Bot added the [Package] Editor /packages/editor label Mar 30, 2026
aswasif007 and others added 4 commits March 30, 2026 15:06
Add suggestion mode toggle, store state, and inline diff rendering so
editors can see additions and removals directly within blocks that have
associated note suggestions.
@github-actions github-actions Bot added the [Package] Block editor /packages/block-editor label Mar 30, 2026
t-wright and others added 5 commits March 30, 2026 21:06
Enable editing suggestion notes directly within blocks: selected blocks
show editable note content, unselected blocks show the diff. Extract
shared preamble into resolveSuggestionContext, deduplicate rich-text
extraction, and remove unused extractSuggestionContent.
@aswasif007
aswasif007 force-pushed the try/block-note-suggestion branch from 3f6164a to a91f9ef Compare March 31, 2026 03:21
Update the diff style
@github-actions github-actions Bot added the [Package] Interface /packages/interface label Mar 31, 2026
t-wright and others added 4 commits March 31, 2026 15:01
Find the first suggestion note in a thread when the primary note is a
regular comment, using the sidebar's cached query to avoid extra API
requests. Cache the initial suggestionEditAttributes on selection so
debounced entity edits don't create new RichTextData that resets the
cursor position mid-typing.
@aswasif007

Copy link
Copy Markdown
Contributor Author

This was a quick prototype. Closing the PR.

@aswasif007 aswasif007 closed this Apr 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

[Package] Block editor /packages/block-editor [Package] Editor /packages/editor [Package] Interface /packages/interface

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants