-
Hey devs, am using Novel's editor for a project with R2 as the image storage. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
I ended up saving the image src and image key in localstorage then when getting the editor json onUpdate, a loop checks for image src and compares it to the one in local storage. if they are the same then the title is assigned to the value of image key. Lastly the key and it's value are removed from localStorage after uploading editor json to database. This only happens once during image upload. |
Beta Was this translation helpful? Give feedback.
-
Hi @meshackm, Could you please share more detail on this? I want to capture Image Caption and Alt Text while uploading the image in the editor and also assign these values to JSON. |
Beta Was this translation helpful? Give feedback.
I ended up saving the image src and image key in localstorage then when getting the editor json onUpdate, a loop checks for image src and compares it to the one in local storage. if they are the same then the title is assigned to the value of image key. Lastly the key and it's value are removed from localStorage after uploading editor json to database. This only happens once during image upload.