2
0
mirror of https://github.com/Ionaru/easy-markdown-editor synced 2025-07-16 06:24:28 -06:00

Merge pull request #592 from p1gp1g/fix/image-processing

Avoid processing many times the same image
This commit is contained in:
Jeroen Akkerman 2024-06-07 12:34:49 +02:00 committed by GitHub
commit a6b121f2e6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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] = {