Frage

Is there a way to trigger an event when the user deletes an object in tinyMCE?

I'm trying to erase uploaded images from a cache folder when the users deletes an image from the tinyMCE instance. So if he uploads images and then deletes it, an ajax action deletes the file on the uploaded folder. This way I have a cleaner cache folder.

War es hilfreich?

Lösung

Yes, this is possible. You could catch the DOMNodeRemoved event and check for the node that got deleted. In case it is an image you do your cache magic.

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top