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

[Bug] rich text editor discards html when edited from a separate relationship table #4857

Closed
Saad5400 opened this issue May 2, 2024 · 2 comments

Comments

@Saad5400
Copy link

Saad5400 commented May 2, 2024

PocketBase v0.21.3

If I have a table record with a rich text editor attribute, I can create and edit it completely normally from the same table page, let's call this table A. However, if I have another table (B), which has a relation with A and I go to B's table page and edit one of the B table's records, and from within that record I edit the A table's relation record which has a rich text editor, it opens up as if it's just text without all the html markup I've written earlier.

Perhaps some images would be better:

Editing the record from the same table page:
image

Editing the very same record but from a relation table page:
image

As you can see that the markup is no longer used in the rich text editor.

I know that you're planning to change the text editor, if you haven't already. But please keep this bug in mind for testing. Thanks a lot in advance.

@ganigeorgiev
Copy link
Member

Hm, I don't think this is related to the TinyMCE editor and it is most likely because in the relation popup the records are fetched with the :excerpt modifier for the editor type fields and passed as it is in the edit form instead of fetching the full record.

I'll push a fix sometime later this weekend.

@ganigeorgiev
Copy link
Member

I've submitted a fix in master and it will be available with the next minor v0.22.11 release this weekend.

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

No branches or pull requests

2 participants