It's possible that the issue is related to the configuration of TinyMCE. Make sure that you have enabled the appropriate plugins for handling images and videos. Additionally, check that the form you are using to submit the data is set up correctly to handle file uploads.
Here's an example configuration for TinyMCE that includes the necessary plugins:
tinymce.init({
selector: 'textarea',
plugins: 'image media',
toolbar: 'undo redo | bold italic | image media',
media_live_embeds: true
});
Make sure that your form includes the enctype="multipart/form-data" attribute to enable file uploads:
<form method="POST" action="/submit" enctype="multipart/form-data">
<textarea name="content"></textarea>
<input type="file" name="image">
<input type="file" name="video">
<button type="submit">Save</button>
</form>
If you're still having issues, try checking the network tab in your browser's developer tools to see if the image or video data is being sent to the server correctly.