Skip to content

Commit

Permalink
Merge pull request #1376 from codidact/0valt/1060/tag-validation-fix
Browse files Browse the repository at this point in the history
Fixed tag wiki editor character count validation
  • Loading branch information
Oaphi authored Aug 15, 2024
2 parents d6f8596 + 182139d commit 44420ec
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/views/tags/_form.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,8 @@
<%= render 'shared/char_count', type: 'tag-excerpt', cur: @tag.excerpt&.length, min: 0, max: 600 %>
</div>

<%= render 'shared/body_field', f: f, cur_length: @tag.wiki_markdown&.length, field_name: :wiki_markdown, field_label: 'Wiki', post: @tag do %>
<%= render 'shared/body_field', f: f, min_length: 0, max_length: 30_000, cur_length: @tag.wiki_markdown&.length,
field_name: :wiki_markdown, field_label: 'Wiki', post: @tag do %>
Full usage guidance and any other information you want people to know about this tag.
<% end %>
<div class="post-preview"></div>
Expand Down

0 comments on commit 44420ec

Please sign in to comment.