#1485230: allow only images (by filename extension) in tinyMCE's images selector

release-0.6
alecpl 16 years ago
parent 5f0724f8ad
commit 3ac95d5a67

@ -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]);
}
};

Loading…
Cancel
Save