diff --git a/agent/files.php b/agent/files.php index 956516df8..ff3e98acf 100644 --- a/agent/files.php +++ b/agent/files.php @@ -1334,6 +1334,8 @@ function updateModalContent() { // The endpoint returns HTMLPurifier output, which is what // document.php renders too docPanel.innerHTML = data.content || '
This document is empty.
'; + // Arrives after pretty_content.js's page-load pass, so run it again + prettyContent(); }) .catch(function () { if (requestedIndex === currentIndex) { @@ -1384,6 +1386,7 @@ document.addEventListener('keydown', function (e) { +