Go to file
Adam Ahmed 57e7ed7177 Correctly calculate multiple offscreen widget heights.
widgetHeight adds out-of-DOM widgets to the measure DIV to check their
height. Unfortunately, the check for "out-of-DOM" is an inadequate
heuristic. It only checks that the widget has a parentNode.

widgetHeight adds the widget to a new DIV which is in turn added to the
measure DIV. Later, the new DIV is removed from the measure DIV, but
the widget is not, in turn, removed from it. This is where the heuristic fails.

widgetHeight then attempts to measure the height of the out-of-DOM widget,
which is always 0.

I have also seen cases where the widget is attached to a line which is
out-of-DOM, but I haven't followed the logic through and written a test
case for it.
2014-06-03 21:57:08 +02:00
addon [search addon] Fix highlighting around \b markers in regexp search 2014-04-22 13:57:39 +02:00
bin Add version number to manual 2014-03-07 15:54:31 +01:00
demo [xml-hint addon] Support attributes that apply to all tags 2014-04-22 13:57:37 +02:00
doc Bump version number post-3.24 2014-04-22 14:05:15 +02:00
keymap [vim] Implement gstar and ghash 2014-03-17 16:00:46 +01:00
lib Correctly calculate multiple offscreen widget heights. 2014-06-03 21:57:08 +02:00
mode [cobol mode] Fix function selectFontsize() in demo for FireFox 2014-04-22 13:57:39 +02:00
test Correctly calculate multiple offscreen widget heights. 2014-06-03 21:57:08 +02:00
theme Drop font-family rules from themes 2014-04-22 13:57:37 +02:00
.gitattributes Force correct line endings in text files 2012-12-10 12:24:10 +01:00
.gitignore [smartymixed mode] Add 2013-07-12 10:48:55 +02:00
.travis.yml Remove obsolete before_script section in .travis.yml 2012-09-03 10:15:16 +02:00
AUTHORS Mark version 3.24 2014-04-22 13:58:17 +02:00
CONTRIBUTING.md Get rid of top links in CONTRIBUTING.md 2013-08-29 11:13:29 +02:00
LICENSE [LICENCE] use current year 2014-03-15 10:04:16 +01:00
README.md Add npm module badge 2013-04-04 22:09:48 +02:00
bower.json Remove bower version 2013-10-07 09:39:04 +02:00
index.html Mark version 3.24 2014-04-22 13:58:17 +02:00
package.json Bump version number post-3.24 2014-04-22 14:05:15 +02:00

README.md

CodeMirror

Build Status NPM version

CodeMirror is a JavaScript component that provides a code editor in the browser. When a mode is available for the language you are coding in, it will color your code, and optionally help with indentation.

The project page is http://codemirror.net
The manual is at http://codemirror.net/doc/manual.html
The contributing guidelines are in CONTRIBUTING.md