An example:
- Code: Select all
function manipulateImage (image) {
image = jQuery(image);
// Play around with it as you like
image.attr('src', 'new-img.png');
}
jQuery(wym._doc.body).click(function (e) {
if ($(e.target).is('img')) {
manipulateImage(e.target);
}
});