Skip to content

Nxd fix froala image url#25

Merged
Lina0Elman merged 5 commits intomasterfrom
NXD-fix-froala-image-url
Jun 7, 2025
Merged

Nxd fix froala image url#25
Lina0Elman merged 5 commits intomasterfrom
NXD-fix-froala-image-url

Conversation

@taljacob2
Copy link
Member

@taljacob2 taljacob2 commented Jun 6, 2025

Fixed Froala editor image persistence.

When an image is added to the editor, it is tagged with a local blob URL. And it uploaded it like that, then the next time you log in, it tries to display that URL, but because it was temporarily saved locally, it is deleted, so you don't see it.

The previous solution was to kind of make it work "forcefully", meaning only when you do a submit, go through all these blobs and upload the images, then get a real URL for each of them from the server, and then replace all the blobs with their corresponding URLs. But this is not supported by Froala, so it was done manually and it is unstable.

The solution is as they suggest, that as soon as you upload the image to the editor, you immediately upload it, get the real URL, and then immediately replace the blob with the URL.

@taljacob2 taljacob2 requested review from LiavTB and Lina0Elman June 6, 2025 14:45
@taljacob2 taljacob2 self-assigned this Jun 6, 2025
@taljacob2 taljacob2 added the bug Something isn't working label Jun 6, 2025
taljacob2 added 4 commits June 6, 2025 17:46
Signed-off-by: Tal Jacob <taljacob2@gmail.com>
Signed-off-by: Tal Jacob <taljacob2@gmail.com>
Signed-off-by: Tal Jacob <taljacob2@gmail.com>
… Well

Signed-off-by: Tal Jacob <taljacob2@gmail.com>
@taljacob2 taljacob2 force-pushed the NXD-fix-froala-image-url branch from d249399 to f4ec214 Compare June 6, 2025 14:46
@taljacob2
Copy link
Member Author

Rebased on master 5e84005

Signed-off-by: Tal Jacob <taljacob2@gmail.com>
Copy link
Contributor

@Lina0Elman Lina0Elman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome!!

@Lina0Elman Lina0Elman merged commit dd8fac4 into master Jun 7, 2025
4 checks passed
@Lina0Elman Lina0Elman deleted the NXD-fix-froala-image-url branch June 7, 2025 07:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants