From fb0f9556513d483807e8c23675d90a1b7698f305 Mon Sep 17 00:00:00 2001 From: Anton Khorev Date: Thu, 8 Aug 2024 04:48:57 +0300 Subject: [PATCH] Add richtext help tab --- app/views/shared/_richtext_field.html.erb | 38 +++++++++++++---------- config/locales/en.yml | 1 + 2 files changed, 22 insertions(+), 17 deletions(-) diff --git a/app/views/shared/_richtext_field.html.erb b/app/views/shared/_richtext_field.html.erb index 8956e0330..c3ad9e3be 100644 --- a/app/views/shared/_richtext_field.html.erb +++ b/app/views/shared/_richtext_field.html.erb @@ -1,25 +1,29 @@ -
-
- -
+
+ +
+
<%= builder.text_area(attribute, options.merge(:wrapper => false, "data-preview-url" => preview_url(:type => type))) %>
-
-
-
-
-
- <%= render :partial => "shared/#{type}_help" %> +
+
+
+ <%= render :partial => "shared/#{type}_help" %> +
+
+
diff --git a/config/locales/en.yml b/config/locales/en.yml index a69416337..ac41952c7 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -1905,6 +1905,7 @@ en: richtext_field: edit: Edit preview: Preview + help: Help site: about: next: Next -- 2.39.5