From 1b4fbdb065951f6755c133cb81fc12450d8470f7 Mon Sep 17 00:00:00 2001 From: probablycorey Date: Wed, 24 Apr 2013 15:57:06 -0700 Subject: [PATCH] Allow html attributes to be applied to Editors --- src/app/editor.coffee | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/app/editor.coffee b/src/app/editor.coffee index e05537d6f..9397339d3 100644 --- a/src/app/editor.coffee +++ b/src/app/editor.coffee @@ -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', =>