How ActionText translates Active Storage
ActionText::Attachment.from_attachable(ActiveStorage::Attachment.last).send(:node)
List all attachments on a Rich text
class Version < ApplicationRecord
has_rich_text :content
end
Version.last.rich_text_content.embeds # ActiveStorage blobs
Version.last.rich_text_content.body.attachables #all attachabkes, including ActiveStorage blobs and ActionText::Attachables::RemoteImage
Version.last.rich_text_content.body.attachables.map(&:class).map(&:name)
["ActiveStorage::Blob", "ActiveStorage::Blob", "ActiveStorage::Blob", "ActionText::Attachables::RemoteImage"]