Embedded Media - dukechronicle/chronline GitHub Wiki
Usage
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>}}
.
Creating a tag class
Tag classes are located in app/models/post/embedded_media
. Each class requires these methods:
initialize(EmbeddedMedia, [info, ...])
to_html(float: {:right, :left})