Disable autocomplete for textarea field

This commit is contained in:
aignatov-bio 2019-11-12 14:37:23 +01:00
parent 22962256cf
commit 19f5f9de67
5 changed files with 5 additions and 0 deletions

View file

@ -20,6 +20,7 @@
placeholder: t('my_modules.module_header.empty_description_edit_label'),
hide_label: true,
value: sanitize_input(@my_module.tinymce_render(:description)),
autocomplete: 'off',
data: {
object_type: 'my_module',
object_id: @my_module.id,

View file

@ -20,6 +20,7 @@
placeholder: t('my_modules.protocols.protocol_status_bar.empty_description_edit_label'),
hide_label: true,
value: sanitize_input(protocol.tinymce_render(:description)),
autocomplete: 'off',
data: {
object_type: 'protocol',
object_id: protocol.id,

View file

@ -7,6 +7,7 @@
<%= ff.tiny_mce_editor(:text,
id: :result_text_attributes_textarea,
value: @result.result_text.tinymce_render(:text),
autocomplete: 'off',
data: { object_type: 'result_text',
object_id: @result.result_text.id,
highlightjs_path: asset_path('highlightjs-github-theme.css'),

View file

@ -6,6 +6,7 @@
<%= f.fields_for :result_text do |ff| %>
<%= ff.tiny_mce_editor(:text,
id: :result_text_attributes_textarea,
autocomplete: 'off',
data: { object_type: 'result_text',
object_id: @result.result_text.id,
highlightjs_path: asset_path('highlightjs-github-theme.css'),

View file

@ -33,6 +33,7 @@
id: :step_description_textarea,
hide_label: false,
value: sanitize_input(@step.tinymce_render(:description)),
autocomplete: 'off',
data: {
object_type: 'step',
object_id: @step.id,