When inserting images in the markdown, drop responsive identifier from the filename. Fix #109

This commit is contained in:
Flavio Copes
2015-08-28 18:35:14 +02:00
parent 4176b32e61
commit f15f8010d9

View File

@@ -83,6 +83,7 @@
editor.focus();
var filename = target.text();
filename = filename.replace(/@3x|@2x|@1x/, '');
if (filename.match(/\.(jpg|jpeg|png|gif)$/)) {
editor.doc.replaceSelection('![](' + encodeURI(filename) + ')');
} else {