method

attachables

Importance_1
v7.1.3.2 - Show latest stable - 0 notes - Class: Content
attachables() public

Extracts +ActionText::Attachable+s 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]
Show source
Register or log in to add new notes.