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

Impossible to save hyperlinks when pictures have allready been uploaded #1455

Open
Aline86 opened this issue Dec 15, 2024 · 0 comments
Open

Comments

@Aline86
Copy link

Aline86 commented Dec 15, 2024

Hi, it looks like when you allready have uploaded some pictures in the editor, hyperlinks can't be added anymore. They are saved as normal text in rawDraftContentState :
-block part of rawdraftcontentstate is not saved as atomic but unstyled
-entityMap is not saved with updated data
But this happens only when you have uploaded pictures before you add a hyperlink, otherwise it works correctly.
I tryed to override this part with linkCallback but since the function must return following information to be processed (linkTitle, linkTarget, linkTargetOption) I can't manage to save newDraftContentState with updated entityMap.
Can you help please ? Thank's a lot in advance

@Aline86 Aline86 changed the title Impossible to save a new link when pictures have allready been uploaded Impossible to save hyperlinks when pictures have allready been uploaded Dec 15, 2024
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

1 participant