mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-01-08 00:23:01 +08:00
Strip trailling carriage and newlines in TinyMCE text [SCI-7237]
This commit is contained in:
parent
dbb547b3ee
commit
befb2edfcf
1 changed files with 1 additions and 1 deletions
|
@ -34,7 +34,7 @@
|
|||
<% step_text = step_element.orderable %>
|
||||
<div class="print-step-text">
|
||||
<div class="ql-editor">
|
||||
<%= custom_auto_link(step_text.tinymce_render(:text),
|
||||
<%= custom_auto_link(step_text.tinymce_render(:text).gsub(/<p>\S<\/p>/, '').strip,
|
||||
simple_format: false,
|
||||
tags: %w(img),
|
||||
team: current_team,
|
||||
|
|
Loading…
Reference in a new issue