I've created a custom Page Template that grabs all the attached media (images) to the page using
I'm adding the media by clicking on
Add Media button above page title.
If I delete everything from visual or text view, the attachments are still attached.
Is there any solution for that? For example a button in the WYSIWYG editor that removes all the attached media? Or any other solution?
Thanks in advance!