mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-03-06 12:43:06 +08:00
Merge pull request #1809 from okriuchykhin/ok_SCI_3506
Fix import of ELN protocols [SCI-3506]
This commit is contained in:
commit
75f122aa15
1 changed files with 2 additions and 3 deletions
|
@ -160,12 +160,11 @@ module ProtocolsImporter
|
|||
tiny_mce_img.save!
|
||||
if description.gsub!("data-mce-token=\"#{tiny_mce_img_json['tokenId']}\"",
|
||||
"data-mce-token=\"#{Base62.encode(tiny_mce_img.id)}\"")
|
||||
description.gsub!(' ]]-->', '')
|
||||
|
||||
else
|
||||
description.gsub!("data-mce-token=\"#{Base62.encode(tiny_mce_img_json['tokenId'].to_i)}\"",
|
||||
"data-mce-token=\"#{Base62.encode(tiny_mce_img.id)}\"").gsub!(' ]]-->', '')
|
||||
"data-mce-token=\"#{Base62.encode(tiny_mce_img.id)}\"")
|
||||
end
|
||||
description.gsub!(' ]]-->', '')
|
||||
end
|
||||
description
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue