Add showing tunit boundaries

This commit is contained in:
Thelonius Kort
2023-01-04 14:43:51 +01:00
parent d589d84b40
commit 8de7169217
2 changed files with 24 additions and 2 deletions

View File

@ -13,8 +13,9 @@
</:actions>
</.header>
<div class="article">
<a href="#" class="show-link" phx-click={JS.add_class("show-boundary", to: ".article")}>show boundaries</a>
<a href="#" class="hide-link" phx-click={JS.remove_class("show-boundary", to: ".article")}>hide boundaries</a>
<%= InternalTree.render_html(@article.content) |> raw %>
</div>