Skip to content

Models using legacy (editorjs) rich text fields do not populate in Webiny UI #4251

Open
@cscarbrough

Description

@cscarbrough

Version

5.40.5

Operating System

MacOS

Browser

Chrome

What are the steps to reproduce this bug?

  1. Create a model using the legacy editorjs text input (unsure if possible to do this - ours was created by migrating our model from an older version of Webiny)
  2. Attempt to create a new entry in the model, making sure to enter data in the rich text field.
  3. Save the entry, and optionally publish.
  4. Refresh the page.
  5. Observe that the rich text field is now empty, containing only the "Click here to type" placeholder text.

See the attached video for an example. In the video, I pasted the contents of the rich text field, but this occurs when typing as well.

Screen.Recording.2024-09-05.at.3.11.16.PM.mov

What is the expected behavior?

The field's data should appear in the editing text box as it was when it was saved prior.

What do you see instead?

After refreshing the page or navigating to the entry at a later time, the rich text field no longer has data in it and instead contains the placeholder text "Click here to type"

Screen.Recording.2024-09-05.at.3.11.16.PM.mov

Additional information

  • Changing our rich text fields to use the new lexical editor is impractical at this time, as the output of these fields change structure. This would require us to make changes to our production mobile app and do additional work to convert older entries to ensure backwards compatibility. These changes would take weeks and need to be worked into our roadmap.
  • The data does get returned via GraphQL queries, so it appears it is being saved without issue.
  • I'm happy to attempt fixing this bug myself as I can imagine usage of these legacy editors is relatively low and it looks to be unsupported moving forward, but some assistance finding the location of the potential changes would be vital.

Possible solution

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions