I'm trying to use TinyMCE 5 with Django CreateView and can't get it to save to the database with the submit button; the form doesn't get submitted, i.e form_valid doesn't get called. The HTML template I'm using works with both CreateView and UpdateView successfully without TinyMCE and the model gets saved to the database.
One of the fields in my model is a TextArea so wanted to try TinyMCE. I downloaded the SDK and have it stored locally. I then placed the following in the head tags as per the documentation:
<script src="{% static 'tinymce/js/tinymce/tinymce.min.js' %}"></script>
<script type="text/javascript">
tinymce.init({
selector: '#id_description',
});
</script>
With this in place, I can see and use the TinyMCE editor when both Creating a new model and updating an existing one, but I can no longer save new model data to the database. Funny thing is though, I can still update and save existing data.
Since I can update existing data, but not new data, I think this is probably a bug. Can anyone confirm please.
Thanks