Skip to content

Commit

Permalink
Merge pull request #459 from vanillajonathan/patch-2
Browse files Browse the repository at this point in the history
Accept APNG for image uploads
  • Loading branch information
Ionaru committed May 19, 2022
2 parents c311bfa + 146a5e3 commit 68d33ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/js/easymde.js
Expand Up @@ -917,7 +917,7 @@ function afterImageUploaded(editor, url) {
var ext = imageName.substring(imageName.lastIndexOf('.') + 1).replace(/\?.*$/, '').toLowerCase();

// Check if media is an image
if (['png', 'jpg', 'jpeg', 'gif', 'svg', 'avif', 'webp'].includes(ext)) {
if (['png', 'jpg', 'jpeg', 'gif', 'svg', 'apng', 'avif', 'webp'].includes(ext)) {
_replaceSelection(cm, stat.image, options.insertTexts.uploadedImage, url);
} else {
var text_link = options.insertTexts.link;
Expand Down

0 comments on commit 68d33ec

Please sign in to comment.