mirror of
https://github.com/getgrav/grav-plugin-admin.git
synced 2026-07-13 19:32:22 +02:00
When inserting images in the markdown, drop responsive identifier from the filename. Fix #109
This commit is contained in:
@@ -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(' + ')');
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user