chore: converted post editor to live component
This commit is contained in:
@@ -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} />
|
||||
|
||||
Reference in New Issue
Block a user