You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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
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
The text was updated successfully, but these errors were encountered: