Skip to content

Editing a richText field is not working #71

Closed

Description

@DanRibbens

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

Activity

  1. github-actions commented on Sep 8, 2024

    @github-actions
    Contributor

    This issue has been automatically locked.
    Please open a new issue if this issue persists with any additional detail.

  2. locked as resolved and limited conversation to collaborators on Sep 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions