class

ActionText::TrixAttachment

rails latest stable - Superclass: Object

No documentation available for this class.

Constants

ATTRIBUTES = %w( sgid contentType url href filename filesize width height previewable content ) + COMPOSED_ATTRIBUTES

ATTRIBUTE_TYPES = {\n"previewable" => ->(value) { value.to_s == "true" },\n"filesize" => ->(value) { Integer(value.to_s, exception: false) || value },\n"width" => ->(value) { Integer(value.to_s, exception: false) },\n"height" => ->(value) { Integer(value.to_s, exception: false) },\n:default => ->(value) { value.to_s }\n}

COMPOSED_ATTRIBUTES = %w( caption presentation )

SELECTOR = "[data-trix-attachment]"

TAG_NAME = "figure"

Attributes

[R]node

Files

  • actiontext/lib/action_text/trix_attachment.rb