Skip to Content Skip to Search

DEPRECATED

Methods
F
T

Instance Public methods

fragment_by_converting_trix_attachments(content)

# File actiontext/lib/action_text/attachments/trix_conversion.rb, line 14
def fragment_by_converting_trix_attachments(content)
  fragment_by_converting_editor_attachments(content)
end

from_trix_attachment(trix_attachment)

# File actiontext/lib/action_text/attachments/trix_conversion.rb, line 19
def from_trix_attachment(trix_attachment)
  from_attributes(trix_attachment.attributes)
end

to_trix_attachment(content = trix_attachment_content)

# File actiontext/lib/action_text/attachments/trix_conversion.rb, line 25
def to_trix_attachment(content = trix_attachment_content)
  attributes = full_attributes.dup
  attributes["content"] = content if content
  TrixAttachment.from_attributes(attributes)
end