From: Anton Khorev Date: Thu, 8 Aug 2024 01:48:57 +0000 (+0300) Subject: Add richtext help tab X-Git-Tag: live~312^2~3 X-Git-Url: https://git.openstreetmap.org./rails.git/commitdiff_plain/fb0f9556513d483807e8c23675d90a1b7698f305 Add richtext help tab --- 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