2👍
✅
The reason it didn’t work was because {{ form.content.data }}
appears in the template as raw text.
Thus it was trying to use something like: the brown fox jumped over the lazy dog
and this doesn’t compile to a javascript object. Adding quotes around the {{ form.content.data }}
like '{{ form.content.data }}'
fixed it.
Source:stackexchange.com