Skip to content

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

@Aline86

Description

@Aline86

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions