mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-10-06 20:05:55 +08:00
Disable autocomplete for textarea field
This commit is contained in:
parent
22962256cf
commit
19f5f9de67
5 changed files with 5 additions and 0 deletions
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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'),
|
||||
|
|
|
@ -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'),
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Add table
Reference in a new issue