Manually replacing imageURL breaks the document #292
Unanswered
MahmoudGamalEid
asked this question in
Mobile
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Question Regarding image embedding in Flutter
I have an editor with an _onImagePickCallback function as follows:
The image renders fine and works as expected
and if i choose to upload the image right away to firebase storage like so
It also works as expected and the image is rendered properly.
However if I attempt to parse the delta of the doc and look for image tags and upload the images and replace the existing local file path with a firebase storage URL,Instead of rendering an image a literal text is displayed.
something like {image: http://10.0.2.2:9199/v0/b/restOfURL}
I inspected the delta of the document when I use the upload during editing method mentioned above and its identical to my replace method yet the first one works and the second doesn't.
what am I doing wrong?
I am doing this for two reasons :
My guess is that there is some other operation that is being done to the document to let it know that this tag is in fact an image and not text other than the "{image: " part
is my guess correct?
is it not possible to do what I am trying to do ?
Beta Was this translation helpful? Give feedback.
All reactions