I've tried to upload an image and the insert image popup did not come back. With the attached patch, it works.
Instead of displaying that status message I've did this:
if (!isset($node->image_path)) {
drupal_goto('node/'. $node->nid);
}
I guess this seally can not break anything.
Comments
Comment #1
chx commentedSorry, uploaded the not-so-beautiful patch, now there are a lot more spaces :) otherwise it's the same.
Comment #2
chx commentedGordon made a better one than this simple solution. See this http://drupal.org/node/view/9496 patch and the CVS of htmlarea.