instance method fragment_by_converting_trix_attachments

Ruby on Rails 7.0.10

Since v6.0.6

Available in: v6.0.6 v6.1.7.10 v7.0.10 v7.1.6 v7.2.3 v8.0.4 v8.1.2

Signature

fragment_by_converting_trix_attachments(content)

No documentation comment.

Parameters

content req
Source
# File actiontext/lib/action_text/attachments/trix_conversion.rb, line 11
        def fragment_by_converting_trix_attachments(content)
          Fragment.wrap(content).replace(TrixAttachment::SELECTOR) do |node|
            from_trix_attachment(TrixAttachment.new(node))
          end
        end

Defined in actiontext/lib/action_text/attachments/trix_conversion.rb line 11 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActionText::Attachments::TrixConversion

Type at least 2 characters to search.

↑↓ navigate · open · esc close