mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-12-30 20:23:14 +08:00
Merge pull request #1774 from Ducz0r/lm-hotfix-tinymce-images
Fix bug with external TinyMCE assets
This commit is contained in:
commit
c844158f6e
1 changed files with 1 additions and 1 deletions
|
@ -53,7 +53,7 @@ class TinyMceAsset < ApplicationRecord
|
|||
description = update_old_tinymce(description, obj)
|
||||
|
||||
description = Nokogiri::HTML(description)
|
||||
tm_assets = description.css('img')
|
||||
tm_assets = description.css('img[data-mce-token]')
|
||||
tm_assets.each do |tm_asset|
|
||||
asset_id = tm_asset.attr('data-mce-token')
|
||||
new_asset_url = find_by_id(Base62.decode(asset_id))
|
||||
|
|
Loading…
Reference in a new issue