From f9c4387a6893707b19347b929d3a2c6677563a74 Mon Sep 17 00:00:00 2001 From: yflory Date: Mon, 7 Dec 2020 16:39:58 +0100 Subject: [PATCH] Fix rich text mediatag cache --- www/pad/inner.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/www/pad/inner.js b/www/pad/inner.js index a22c0d81d..4968cf4cd 100644 --- a/www/pad/inner.js +++ b/www/pad/inner.js @@ -498,9 +498,10 @@ define([ Array.prototype.slice.call(tags).forEach(function(tag) { var src = tag.getAttribute('src'); if (mediaTagMap[src]) { - mediaTagMap[src].forEach(function(n) { + tag.innerHTML = mediaTagMap[src]; + /*mediaTagMap[src].forEach(function(n) { tag.appendChild(n.cloneNode(true)); - }); + });*/ } }); };