This commit is contained in:
Timothy J. Baek
2024-10-24 15:02:26 -07:00
parent 4282b20495
commit 1472f12f5e
2 changed files with 32 additions and 1 deletions

View File

@@ -32,7 +32,7 @@ export const replaceTokens = (content, char, user) => {
// Replace HTML ID tags with corresponding HTML content
content = content.replace(htmlIdToken, (match, fileId) => {
const htmlUrl = `${WEBUI_BASE_URL}/api/v1/files/${fileId}/content`;
const htmlUrl = `${WEBUI_BASE_URL}/api/v1/files/${fileId}/content/html`;
return `<iframe src="${htmlUrl}" width="100%" frameborder="0" onload="this.style.height=(this.contentWindow.document.body.scrollHeight+20)+'px';"></iframe>`;
});