load old value with embedded image in trix
nadeem706 opened this issue · 0 comments
Hi All,
I am able to retrieve old data without embedded images
data value
{"_token":"lg8BfOjjTKVyCUhWhYNt0bKoXiYj6tJGBbVTFSig","customermessage-trixFields":{"content":"<div><strong>sdsdsdsd<br><\/strong><strong><del>sdsdsdsd<br><\/del><\/strong><strong><em><del>sdsds<\/del><\/em><\/strong><\/div>"},"attachment-customermessage-trixFields":{"content":"[]"},"content":"<h1>This is content<\/h1>"}
When I embed image old data not display
old data value when image embedded
{"_token":"lg8BfOjjTKVyCUhWhYNt0bKoXiYj6tJGBbVTFSig","customermessage-trixFields":{"content":"<div>Hello<br><figure data-trix-attachment=\"{"contentType":"image\/jpeg","filename":"7.jpg","filesize":21453,"height":362,"href":"https:\/\/signs-public.nyc3.digitaloceanspaces.com\/blog\/TuGTExajkQO6rslY8I9G1EAP9voLJx9iRuPX1HxQ.jpg","url":"https:\/\/signs-public.nyc3.digitaloceanspaces.com\/blog\/TuGTExajkQO6rslY8I9G1EAP9voLJx9iRuPX1HxQ.jpg","width":612}\" data-trix-content-type=\"image\/jpeg\" data-trix-attributes=\"{"presentation":"gallery"}\" class=\"attachment attachment--preview attachment--jpg\"><a href=\"https:\/\/signs-public.nyc3.digitaloceanspaces.com\/blog\/TuGTExajkQO6rslY8I9G1EAP9voLJx9iRuPX1HxQ.jpg\"><img src=\"https:\/\/signs-public.nyc3.digitaloceanspaces.com\/blog\/TuGTExajkQO6rslY8I9G1EAP9voLJx9iRuPX1HxQ.jpg\" width=\"612\" height=\"362\"><figcaption class=\"attachment__caption\"><span class=\"attachment__name\">7.jpg<\/span> <span class=\"attachment__size\">20.95 KB<\/span><\/figcaption><\/a><\/figure><\/div>"},"attachment-customermessage-trixFields":{"content":"[\"TuGTExajkQO6rslY8I9G1EAP9voLJx9iRuPX1HxQ.jpg\"]"}}
Seems like Issue in html code when image is embedded.
Can you guys help me ?