-
Notifications
You must be signed in to change notification settings - Fork 23
Embedded Media
Michael Lai edited this page Sep 25, 2013
·
1 revision
Media is embedded into article bodies using tags, which typically take the form of {{Provider:info}}
, where "Provider" is the name of the service you want to embed, and "info" is any relevant information that is needed to describe the resource you want. For example, a tag to embed a tweet would be {{Twitter:<url of tweet>}}
.
Tag classes are located in app/models/post/embedded_media
. Each class requires these methods:
initialize(EmbeddedMedia, [info, ...])
to_html(float: {:right, :left})