mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-02-24 07:44:46 +08:00
Merge pull request #4878 from artoscinote/ma_SCI_7803
Fix pasting same image multiple times [SCI-7803]
This commit is contained in:
commit
3fdbed382e
1 changed files with 1 additions and 1 deletions
|
@ -28,7 +28,7 @@ class TinyMceAsset < ApplicationRecord
|
|||
.scan(/data-mce-token="([^"]+)"/)
|
||||
.flatten
|
||||
|
||||
images = JSON.parse(images) | text_images
|
||||
images = JSON.parse(images) + text_images
|
||||
|
||||
current_images = object.tiny_mce_assets.pluck(:id)
|
||||
images_to_delete = current_images.reject do |x|
|
||||
|
|
Loading…
Reference in a new issue