In Summernote you want to be able to delete your images in your directory or folder at times. As far as I can see, this is the only tutorial out there on this, so I decided to do it. I made a tutorial in the past that shows you how to upload images to a directory with Summernote. Summernote used base64 encoding, which will bloat your database. However, this is the tutorial that will show you how to delete those images out of the upload’s folder.
HTML Image Sources MySql
The problem was that people could not delete images when they deleted a post that contained HTML. So, in the database, you may have a text entry but not have the file paths listed in another table. This made it difficult to try and find them and delete them, especially when you have many posts. To solve that problem, I wrote the following scripts.
Summernote Upload Images with HTML
Many know that summernote will upload your images with all the HTML included. This is nice because it saves you from having to make separate tables for your images. It is also done with AJAX and PHP, which makes the process smoother. Let’s discuss on the following page the structure for this.
If you just want the script for $5 click here or read on. 🙂
A1WEBSITEPRO Social Media Pages
Here are my social media pages, lets hook up!