app/assets/javascripts/embeditor/embeditor.js.coffee in embeditor-rails-1.1.1 vs app/assets/javascripts/embeditor/embeditor.js.coffee in embeditor-rails-2.0.0.beta
- old
+ new
@@ -36,14 +36,26 @@
defaultService : 'other'
# The class that the embed placeholders have
placeholderClass : "embed-placeholder"
# The class the embed's wrapper should be given
wrapperClass : "embed-wrapper"
+ # The element name which should be wrapped around all embed.
+ # TODO: Allow setting this to "false" for no wrapper.
+ wrapperElement : "div"
+ # Default embed placement, if a placement is somehow missing or
+ # it doesn't exist in the PlacementFunctions object.
+ defaultPlacement : 'after'
+ # jQuery function mapping for embed placement,
+ # relative to the placeholder link.
+ #
+ # Keys are the `data-placement` attribute, and values are the
+ # jQuery functions.
PlacementFunctions :
- before : 'before'
- after : 'after'
- replace : 'replaceWith'
+ before : 'before'
+ after : 'after'
+ replace : 'replaceWith'
+
}
class Embeditor.Base
constructor: (options={}, adapters={}) ->