mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-03-06 20:56:42 +08:00
add to fields with rich text formatting
This commit is contained in:
parent
44de927cf4
commit
4ea154410a
3 changed files with 7 additions and 4 deletions
|
@ -23,8 +23,9 @@
|
|||
<div class="report-element-body">
|
||||
<div class="row">
|
||||
<div class="col-xs-12 text-container ql-editor">
|
||||
<%= auto_link(result_text.text,
|
||||
<%= auto_link(smart_annotation_parser(result_text.text),
|
||||
link: :urls,
|
||||
sanitize: false,
|
||||
html: { target: '_blank' }).html_safe %>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -27,9 +27,10 @@
|
|||
<div class="row">
|
||||
<div class="col-xs-12 ql-editor">
|
||||
<% if strip_tags(step.description).present? %>
|
||||
<%= auto_link(step.description,
|
||||
link: :urls,
|
||||
html: { target: '_blank' }).html_safe %>
|
||||
<%= auto_link(smart_annotation_parser(step.description),
|
||||
link: :urls,
|
||||
sanitize: false,
|
||||
html: { target: '_blank' }).html_safe %>
|
||||
<% else %>
|
||||
<em><%=t "projects.reports.elements.step.no_description" %></em>
|
||||
<% end %>
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
<div class="ql-editor">
|
||||
<%= auto_link(smart_annotation_parser(result.result_text.text),
|
||||
link: :urls,
|
||||
sanitize: false,
|
||||
html: { target: '_blank' }).html_safe %>
|
||||
</div>
|
||||
|
|
Loading…
Reference in a new issue