mirror of
https://github.com/atom/atom.git
synced 2026-04-06 03:02:13 -04:00
Handle 'attributes' param to ReactEditorView
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user