method
attachables
v7.2.3 -
Show latest stable
- Class:
ActionText::Content
attachables()public
Extracts ActionText::Attachable objects from the HTML fragment:
attachable = ActiveStorage::Blob.first html = %Q(<action-text-attachment sgid="#{attachable.attachable_sgid}" caption="Captioned"></action-text-attachment>) content = ActionText::Content.new(html) content.attachables # => [attachable]