Trix Editor Uploading Image. After page refresh getting "Unexpected end of JSON input"
I am using the Trix editor and have implemented uploading images as per their docs which works almost perfectly.
However when the page refreshes after saving I am getting "Unexpected end of JSON input" which then results in nothing being loaded into the trix editor field.
I can see that in the DB it is saved and contains data attributes with json inside containing trix information about the html tags. For instance.