From 53a71c39303e2b4752d953eb0ee66619190125f7 Mon Sep 17 00:00:00 2001 From: rhymes Date: Tue, 14 Apr 2020 17:10:16 +0200 Subject: [PATCH] Synchronously render the editor guide (#7140) --- app/views/articles/edit.html.erb | 3 ++- app/views/articles/new.html.erb | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/app/views/articles/edit.html.erb b/app/views/articles/edit.html.erb index 0d61f1c45..692b251c1 100644 --- a/app/views/articles/edit.html.erb +++ b/app/views/articles/edit.html.erb @@ -28,5 +28,6 @@ <% end %> <%= render "shared/webcomponents_loader_script" %> -<%= javascript_packs_with_chunks_tag "clipboardCopy", "articleForm", defer: true %> <%= render "articles/v2_form", article: @article, organizations: @organizations, version: @version %> + +<%= javascript_packs_with_chunks_tag "clipboardCopy", "articleForm", defer: true %> diff --git a/app/views/articles/new.html.erb b/app/views/articles/new.html.erb index 1dfced34f..73a54ce4e 100644 --- a/app/views/articles/new.html.erb +++ b/app/views/articles/new.html.erb @@ -5,8 +5,8 @@ <% if user_signed_in? %> <%= render "shared/webcomponents_loader_script" %> - <%= javascript_packs_with_chunks_tag "clipboardCopy", "articleForm", defer: true %> <%= render "articles/v2_form", article: @article, organizations: @organizations, version: @version %> + <%= javascript_packs_with_chunks_tag "clipboardCopy", "articleForm", defer: true %> <% else %> <% @new_article_not_logged_in = true %> <%= render "devise/registrations/registration_form" %>