Skip to content

fix(RichTextEditor): show a value the editor reported earlier - #3110

Open
jcosta33 wants to merge 3 commits into
mainfrom
fix/rte-host-value-reset
Open

jcosta33 wants to merge 3 commits into
mainfrom
fix/rte-host-value-reset

Conversation

@jcosta33

@jcosta33 jcosta33 commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

A host that controls the editor through value discards an edit by passing back the last saved version, for example on Cancel. The editor ignored any version it had already sent through onChange, so Cancel did nothing. It now ignores an old version only while the host catches up with the user's typing.

A version the editor applies still replaces the whole content, as on main. Keeping the caret, undo and IME input through it is #2937, the next PR in this stack.

How to test

In Storybook, open Rich Text Editor / Editor / Controlled Value.

  1. Type "one" at the end of the paragraph.
  2. Click Save.
  3. Type "two" at the end of the paragraph.
  4. Click Cancel.
Before: nothing happens, "two" stays After: the paragraph goes back to the saved text
After Cancel on main: the paragraph still ends in "one two" After Cancel on this branch: the paragraph ends in "one"

Followed by #2937.

FP-756

The editor ignored every document it had reported, so a host handing back
the saved one on Cancel saw nothing happen. Report order now tells a late
echo from a reset.
@jcosta33
jcosta33 added this pull request to stack #3111 November 23, 2026 12:58
@changeset-bot

changeset-bot Bot commented Nov 23, 2026 •

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 622ad0a

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 2 packages
Name Type
@frontify/fondue-rich-text-editor Patch
@frontify/fondue Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@jcosta33 jcosta33 changed the title fix/rte host value reset fix(RichTextEditor): show a value the editor reported earlier Nov 23, 2026
@netlify

netlify Bot commented Nov 23, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for fondue-docs ready!

Name Link
🔨 Latest commit 622ad0a
🔍 Latest deploy log https://app.netlify.com/projects/fondue-docs/deploys/6b045502e0d4f93bacb79680
😎 Deploy Preview https://deploy-preview-3110.fondue-components.frontify.com
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@jcosta33
jcosta33 marked this pull request as ready for review November 23, 2026 13:50
@jcosta33
jcosta33 requested a review from a team as a code owner November 23, 2026 13:50
@jcosta33
jcosta33 requested a review from SamuelAlev November 23, 2026 13:50
@SamuelAlev
SamuelAlev requested review from noahwaldner and removed request for SamuelAlev November 23, 2026 13:59

This branch has not been deployed

No deployments
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