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:
commit
a6b121f2e6
@ -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] = {
|
||||
|
Loading…
x
Reference in New Issue
Block a user