Handle 'attributes' param to ReactEditorView

This commit is contained in:
Nathan Sobo
2014-07-14 13:15:05 -06:00
parent 3206fdce9e
commit c4177aba3e

View File

@@ -7,7 +7,10 @@ EditorComponent = require './editor-component'
module.exports =
class ReactEditorView extends View
@content: -> @div class: 'editor react'
@content: (params) ->
attributes = params.attributes ? {}
attributes.class = 'editor react'
@div attributes
focusOnAttach: false