mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-02-05 22:44:22 +08:00
Markup fix
This commit is contained in:
parent
1f02fb4bc7
commit
40a8c6a1cc
1 changed files with 1 additions and 0 deletions
|
@ -19,6 +19,7 @@ module TinyMceImages
|
||||||
|
|
||||||
tiny_mce_assets.each do |tm_asset|
|
tiny_mce_assets.each do |tm_asset|
|
||||||
next unless tm_asset&.image&.attached?
|
next unless tm_asset&.image&.attached?
|
||||||
|
|
||||||
new_tm_asset_src = tm_asset.convert_variant_to_base64(tm_asset.preview)
|
new_tm_asset_src = tm_asset.convert_variant_to_base64(tm_asset.preview)
|
||||||
html_description = Nokogiri::HTML(description)
|
html_description = Nokogiri::HTML(description)
|
||||||
tm_asset_to_update = html_description.css(
|
tm_asset_to_update = html_description.css(
|
||||||
|
|
Loading…
Reference in a new issue