mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-01-04 06:36:27 +08:00
Fix placeholder for tinymce description fields
This commit is contained in:
parent
92279d07ad
commit
10bd1d425d
2 changed files with 10 additions and 16 deletions
|
@ -3,14 +3,11 @@
|
||||||
<div id="my_module_description_view"
|
<div id="my_module_description_view"
|
||||||
class="ql-editor tinymce-view"
|
class="ql-editor tinymce-view"
|
||||||
data-placeholder="<%= t('my_modules.module_header.empty_description_edit_label') %>"
|
data-placeholder="<%= t('my_modules.module_header.empty_description_edit_label') %>"
|
||||||
data-tinymce-init="tinymce-my-module-description-<%= @my_module.id %>">
|
data-tinymce-init="tinymce-my-module-description-<%= @my_module.id %>"
|
||||||
<% if @my_module.description.present? %>
|
><%= custom_auto_link(@my_module.tinymce_render(:description),
|
||||||
<%= custom_auto_link(@my_module.tinymce_render(:description),
|
simple_format: false,
|
||||||
simple_format: false,
|
tags: %w(img),
|
||||||
tags: %w(img),
|
team: current_team) if @my_module.description.present? %></div>
|
||||||
team: current_team) %>
|
|
||||||
<% end %>
|
|
||||||
</div>
|
|
||||||
<%= f.tiny_mce_editor(:description,
|
<%= f.tiny_mce_editor(:description,
|
||||||
id: :my_module_description_textarea,
|
id: :my_module_description_textarea,
|
||||||
class: 'hidden',
|
class: 'hidden',
|
||||||
|
|
|
@ -3,14 +3,11 @@
|
||||||
<div id="protocol_description_view"
|
<div id="protocol_description_view"
|
||||||
class="ql-editor tinymce-view"
|
class="ql-editor tinymce-view"
|
||||||
data-placeholder="<%= t('my_modules.protocols.protocol_status_bar.empty_description_edit_label') %>"
|
data-placeholder="<%= t('my_modules.protocols.protocol_status_bar.empty_description_edit_label') %>"
|
||||||
data-tinymce-init="tinymce-protocol-description-<%= protocol.id %>" >
|
data-tinymce-init="tinymce-protocol-description-<%= protocol.id %>"
|
||||||
<% if protocol.description.present? %>
|
><%= custom_auto_link(protocol.tinymce_render(:description),
|
||||||
<%= custom_auto_link(protocol.tinymce_render(:description),
|
simple_format: false,
|
||||||
simple_format: false,
|
tags: %w(img),
|
||||||
tags: %w(img),
|
team: current_team) if protocol.description.present? %></div>
|
||||||
team: current_team) %>
|
|
||||||
<% end %>
|
|
||||||
</div>
|
|
||||||
<%= f.tiny_mce_editor(:description,
|
<%= f.tiny_mce_editor(:description,
|
||||||
id: :protocol_description_textarea,
|
id: :protocol_description_textarea,
|
||||||
class: 'hidden',
|
class: 'hidden',
|
||||||
|
|
Loading…
Reference in a new issue