summaryrefslogtreecommitdiff
path: root/program/js/editor_images.js
diff options
context:
space:
mode:
Diffstat (limited to 'program/js/editor_images.js')
-rw-r--r--program/js/editor_images.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/program/js/editor_images.js b/program/js/editor_images.js
index 373b44e3d..36fc1ab59 100644
--- a/program/js/editor_images.js
+++ b/program/js/editor_images.js
@@ -15,6 +15,8 @@ if (rc_client.gui_objects.attachmentlist)
fname = liElem.childNodes[j].nodeValue;
}
}
- tinyMCEImageList.push([fname, rc_client.env.comm_path+'&_action=display-attachment&_file='+attachElems[i].id]);
+
+ if (fname.match(/\.(bmp|gif|png|jpg|jpeg)$/))
+ tinyMCEImageList.push([fname, rc_client.env.comm_path+'&_action=display-attachment&_file='+attachElems[i].id]);
}
};