Skip to content

How can an image title be added into the editor's json during upload? #366

Closed Answered by meshackm
meshackm asked this question in Q&A
Discussion options

You must be logged in to vote

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.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by meshackm
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants