mirror of
https://github.com/atom/atom.git
synced 2026-01-23 05:48:10 -05:00
Allow html attributes to be applied to Editors
This commit is contained in:
committed by
Corey Johnson & Kevin Sawicki
parent
c5cd39308d
commit
1b4fbdb065
@@ -31,7 +31,9 @@ class Editor extends View
|
||||
###
|
||||
|
||||
@content: (params) ->
|
||||
@div class: @classes(params), tabindex: -1, =>
|
||||
attributes = { class: @classes(params), tabindex: -1 }
|
||||
_.extend(attributes, params.attributes) if params.attributes
|
||||
@div attributes, =>
|
||||
@subview 'gutter', new Gutter
|
||||
@input class: 'hidden-input', outlet: 'hiddenInput'
|
||||
@div class: 'scroll-view', outlet: 'scrollView', =>
|
||||
|
||||
Reference in New Issue
Block a user