diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index 57f4819c0..f0c161641 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -273,6 +273,7 @@ module ApplicationHelper { lang: "en", class: "c-#{controller_param} a-#{action_param}", + spellcheck: "false", data: { controller: controller_param, action: action_param, diff --git a/app/logical/dtext_input.rb b/app/logical/dtext_input.rb index a1910e933..77e55621a 100644 --- a/app/logical/dtext_input.rb +++ b/app/logical/dtext_input.rb @@ -16,7 +16,7 @@ class DtextInput < SimpleForm::Inputs::Base t = template merged_input_options = merge_wrapper_options(input_html_options, wrapper_options) - t.tag.div(class: "dtext-previewable") do + t.tag.div(class: "dtext-previewable", spellcheck: true) do if options[:inline] t.concat @builder.text_field(attribute_name, merged_input_options) else diff --git a/app/views/posts/partials/show/_edit.html.erb b/app/views/posts/partials/show/_edit.html.erb index 1c47dbc96..f7ee181b2 100644 --- a/app/views/posts/partials/show/_edit.html.erb +++ b/app/views/posts/partials/show/_edit.html.erb @@ -54,7 +54,7 @@
- <%= f.input :tag_string, label: false, input_html: { size: "60x5", spellcheck: false, "data-autocomplete": "tag-edit", "data-shortcut": "e", value: post.presenter.split_tag_list_text + " " } %> + <%= f.input :tag_string, label: false, input_html: { size: "60x5", "data-autocomplete": "tag-edit", "data-shortcut": "e", value: post.presenter.split_tag_list_text + " " } %>
<%= render "related_tags/buttons" %> diff --git a/app/views/uploads/new.html.erb b/app/views/uploads/new.html.erb index 51552cedb..a41132c1e 100644 --- a/app/views/uploads/new.html.erb +++ b/app/views/uploads/new.html.erb @@ -69,7 +69,7 @@ - <%= f.input :tag_string, label: false, input_html: { size: "60x5", "data-autocomplete": "tag-edit", "data-shortcut": "e", spellcheck: false, value: params[:tag_string] } %> + <%= f.input :tag_string, label: false, input_html: { size: "60x5", "data-autocomplete": "tag-edit", "data-shortcut": "e", value: params[:tag_string] } %> <%= render "related_tags/buttons" %>