mirror of
https://github.com/Ionaru/easy-markdown-editor
synced 2025-07-17 06:54:27 -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]) {
|
if (!window.EMDEimagesCache[keySrc]) {
|
||||||
|
window.EMDEimagesCache[keySrc] = {};
|
||||||
var img = document.createElement('img');
|
var img = document.createElement('img');
|
||||||
img.onload = function () {
|
img.onload = function () {
|
||||||
window.EMDEimagesCache[keySrc] = {
|
window.EMDEimagesCache[keySrc] = {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user