Skip to content

Commit

Permalink
Merge pull request #592 from p1gp1g/fix/image-processing
Browse files Browse the repository at this point in the history
Avoid processing many times the same image
  • Loading branch information
Ionaru authored Jun 7, 2024
2 parents 65dfecf + 97bf9ce commit a6b121f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/js/easymde.js
Original file line number Diff line number Diff line change
Expand Up @@ -2268,6 +2268,7 @@ EasyMDE.prototype.render = function (el) {
}

if (!window.EMDEimagesCache[keySrc]) {
window.EMDEimagesCache[keySrc] = {};
var img = document.createElement('img');
img.onload = function () {
window.EMDEimagesCache[keySrc] = {
Expand Down

0 comments on commit a6b121f

Please sign in to comment.