app/assets/javascripts/embeditor/embeditor.js.coffee in embeditor-rails-1.0.1 vs app/assets/javascripts/embeditor/embeditor.js.coffee in embeditor-rails-1.1.0

- old
+ new

@@ -7,10 +7,11 @@ 'brightcove' : 'Brightcove' 'ustream' : 'Embedly' 'livestream' : 'Embedly' 'vine' : 'Embedly' 'googlemaps' : 'Embedly' + 'googlefusion' : 'GoogleFusion' 'scribd' : 'Embedly' # 'documentcloud' : 'DocumentCloud' 'polldaddy' : 'Polldaddy' 'facebook' : 'Embedly' 'storify' : 'Storify' @@ -27,13 +28,22 @@ Template : (template) -> JST[@TemplatePath + template] DefaultOptions : - defaultAdapter : 'Embedly' # Adapter that gets used when the service isn't recognized - defaultService : 'other' # Service that gets used when the `data-service` attribute is missing - placeholderClass : "embed-placeholder" # The class that the embed placeholders have - wrapperClass : "embed-wrapper" # The class the embed's wrapper should be given + # Adapter that gets used when the service isn't recognized + defaultAdapter : 'Embedly' + # Service that gets used when the `data-service` attribute is missing + defaultService : 'other' + # The class that the embed placeholders have + placeholderClass : "embed-placeholder" + # The class the embed's wrapper should be given + wrapperClass : "embed-wrapper" + + PlacementFunctions : + before : 'before' + after : 'after' + replace : 'replaceWith' } class Embeditor.Base constructor: (options={}, adapters={}) ->