varexpression=newRegExp(Drupal.t('Allowed HTML tags'));
if (expression.exec(element.textContent)&&!element.textContent.match(/<img>/)){
alert(Drupal.t("The selected input format will not allow it to display images. The input format will need to be changed for this image to display properly when saved."));
}
});
},
/**
* Insert content into a textarea at the current cursor position.