Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Editing a richText field is not working #71

Closed
DanRibbens opened this issue Feb 16, 2021 · 0 comments · Fixed by #74
Closed

Editing a richText field is not working #71

DanRibbens opened this issue Feb 16, 2021 · 0 comments · Fixed by #74

Comments

@DanRibbens
Copy link
Contributor

Bug Report

Updates are not saving correctly to rich text fields. Originally reported in discussion: #70 @yudyananda

Expected Behavior

Saving after making changes to a richText input should persist to the database.

Current Behavior

On save from the admin panel, the reqeust shows the changes to the content as an array that appears to include the added text and the response is a 200. The collection item doesn't contain the additional text in the array.

Possible Solution

Investiigating if the richText input is providing incorrect format or if it is an issue on the API side.

Steps to Reproduce

  1. npx create-payload-app rich-text-bug chose typescript, blog
  2. cd rich-text-bug & yarn dev
  3. localhost:3000/admin, sign in. Create a Post. See Save successful snackbar.
  4. Enter some more text in the Content and save again.
  5. Navigate back to Posts, click the post that was updated.
  6. See the original, not updated content in the editor. Also verified in mongoDB collection that the original was not modified.

Detailed Description

payload v0.212
create-payload-app v0.1.16

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 a pull request may close this issue.

1 participant