So, I was having a very, very annoying problem with CodeMirror where the editor would leak outside of the bounds it was given, causing the text to be outside of the CodeMirror div. Typing into the editor would cause the editor to resize to ridiculous size (10000px +) with each character typed into it. So, turns out, I was simply missing a reference to the codemirror.css file.
This is an ASP.NET MVC4 application. I guess I missed that part of the CodeMirror tutorial, but it bothered me enough to blog about. Fix is as simple as:
<link href="/Scripts/CodeMirror/lib/codemirror.css" rel="stylesheet" type="text/css"></link>
No comments:
Post a Comment