Improve rendering of plain text mediatags

pull/1/head
yflory 5 years ago
parent 5c80a8d9b5
commit c786735b1a

@ -76,6 +76,7 @@
text: function (metadata, url, content, cfg, cb) {
var plainText = document.createElement('div');
plainText.className = "plain-text-reader";
plainText.setAttribute('style', 'white-space: pre-wrap;');
var reader = new FileReader();
reader.addEventListener('loadend', function (e) {
plainText.innerText = e.srcElement.result;

Loading…
Cancel
Save