I m using codemirror in my ASP.NET MVC 3 application,
codemirror (2.34)
my TextArea :
@Html.TextAreaFieldFor(s => s.Data.CodeBehind, htmlAttributes: new Dictionary<string, object> { { "class", "textbox codeBehind nffp-code" } })
codemirror :
var a = CodeMirror.fromTextArea($code, {
lineNumbers: true,
matchBrackets: true,
mode: "text/x-csharp"
});
$code
var $code = jQuery('.nffp-code', $root);
:
TypeError: textarea.getAttribute
codemirror.js
2209
textarea.getAttribute( "" )!= null && & & hasFocus == document.body;
codemirror:
, m a total noob in JS, I guess it , .
, ?