chore: converted post editor to live component

This commit is contained in:
2026-05-03 11:32:43 +02:00
parent 0075f25ef7
commit 4fee1a6333
7 changed files with 757 additions and 679 deletions

View File

@@ -382,8 +382,8 @@
</div>
<% else %>
<%= cond do %>
<% @current_tab.type == :post and @post_editor -> %>
<PostEditor.post_editor post_editor={@post_editor} toolbar_buttons={BDS.Desktop.ShellLive.PanelRenderer.editor_toolbar_buttons(@current_tab)} />
<% @current_tab.type == :post -> %>
<.live_component module={PostEditor} id={"post-editor-#{@current_tab.id}"} current_tab={@current_tab} offline_mode={@offline_mode} />
<% @current_tab.type == :media and @media_editor -> %>
<MediaEditor.media_editor media_editor={@media_editor} />