Add HtmlDocComponent to render the InternalTree
Very basic but promising.
This commit is contained in:
@ -38,10 +38,10 @@ defmodule OutlookWeb.TranslationLive.FormComponent do
|
||||
<.tunit_editor current_tunit={@current_tunit} target={@myself} />
|
||||
</div>
|
||||
<div class="article">
|
||||
<%= InternalTree.render_html_preview(@translation.article.content, @myself) |> raw %>
|
||||
<.button phx-disable-with="Translating..." phx-click="translate-deepl" phx-target={@myself}
|
||||
data-confirm-not="Are you sure? All previously translated text will be lost.">Translate with Deepl</.button>
|
||||
<progress :if={@deepl_progress} max="100" value={@deepl_progress} />
|
||||
<.render_doc tree={@translation.article.content} />
|
||||
</div>
|
||||
</div>
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user