Wiki: Render WikiWord links and autolinks on the server side.
Change-Id: I46f972bcebf765a3d9fb55b7b35f40deb978dc5d
diff --git a/src/main/resources/templates/benki/wiki/wikiPage.html b/src/main/resources/templates/benki/wiki/wikiPage.html
index f9f5214..901b300 100644
--- a/src/main/resources/templates/benki/wiki/wikiPage.html
+++ b/src/main/resources/templates/benki/wiki/wikiPage.html
@@ -25,10 +25,11 @@
requestParams.append(name, regions[name]);
}
- var response = await fetch("/wiki/{page.title}", {
+ let response = await fetch("/wiki/{page.title}", {
method: 'POST',
body: requestParams
});
+
this.busy(false);
});
});
@@ -45,7 +46,7 @@
<main>
<div data-editable data-name="wiki-content">
- {#with page}{content.raw}{/}
+ {#with page}{enrichedContent.raw}{/}
</div>
</main>