/* Old release history */
20-11-2012: Version 3.0, release candidate 2:
New major version. Only partially backwards-compatible. See the upgrading guide for more information. Changes since release candidate 1:
addKeyMap
and removeKeyMap
methods.formatting
and closetag
add-ons.20-11-2012: Version 2.36:
scrollIntoView
public.defaultTextHeight
method.20-11-2012: Version 3.0, release candidate 1:
addLineClass
and removeLineClass
,
drop setLineClass
.isClean
/markClean
methods.compoundChange
method, use better undo-event-combining heuristic.22-10-2012: Version 2.35:
markText
/undo interaction.defineInitHook
function.22-10-2012: Version 3.0, beta 2:
gutterClick
event.cursorHeight
option.viewportMargin
option.flattenSpans
option.19-09-2012: Version 2.34:
compareStates
is no longer needed.onHighlightComplete
no longer works.CodeMirror.version
property.19-09-2012: Version 3.0, beta 1:
23-08-2012: Version 2.33:
getViewPort
and onViewportChange
API.false
disabling handling (again).innerHTML
. Remove CodeMirror.htmlEscape
.23-07-2012: Version 2.32:
Emergency fix for a bug where an editor with line wrapping on IE will break when there is no scrollbar.
20-07-2012: Version 2.31:
setSize
method for programmatic resizing.getHistory
and setHistory
methods.getValue
and getRange
.22-06-2012: Version 2.3:
getScrollInfo
method.23-05-2012: Version 2.25:
23-04-2012: Version 2.24:
dragDrop
and onDragEvent
options.compoundChange
API method.catchall
in key maps,
add nofallthrough
boolean field instead.26-03-2012: Version 2.23:
setLineClass
.charCoords
and cursorCoords
with a mode
argument.autofocus
option.findMarksAt
method.27-02-2012: Version 2.22:
autoClearEmptyLines
option.27-01-2012: Version 2.21:
smartIndent
option.readOnly
-mode.scrollTo
method.20-12-2011: Version 2.2:
coordsFromIndex
to posFromIndex
,
add indexFromPos
method.21-11-2011: Version 2.18:
Fixes TextMarker.clear
, which is broken in 2.17.
21-11-2011: Version 2.17:
setBookmark
method.lib/util
.27-10-2011: Version 2.16:
coordsFromIndex
method.setValue
now no longer clears history. Use clearHistory
for that.markText
now
returns an object with clear
and find
methods. Marked text is now more robust when edited.26-09-2011: Version 2.15:
Fix bug that snuck into 2.14: Clicking the character that currently has the cursor didn't re-focus the editor.
26-09-2011: Version 2.14:
fixedGutter
option.setValue
breaking cursor movement.23-08-2011: Version 2.13:
getGutterElement
to API.smartHome
option.25-07-2011: Version 2.12:
innerHTML
for HTML-escaping.04-07-2011: Version 2.11:
replace
method to search cursors, for cursor-preserving replacements.getStateAfter
API and compareState
mode API methods for finer-grained mode magic.getScrollerElement
API method to manipulate the scrolling DIV.07-06-2011: Version 2.1:
Add a theme system (demo). Note that this is not backwards-compatible—you'll have to update your styles and modes!
07-06-2011: Version 2.02:
26-05-2011: Version 2.01:
coordsChar
now worksonCursorActivity
interfered with onChange
.onChange
."nocursor"
mode for readOnly
option.onHighlightComplete
option.28-03-2011: Version 2.0:
CodeMirror 2 is a complete rewrite that's faster, smaller, simpler to use, and less dependent on browser quirks. See this and this for more information.
28-03-2011: Version 1.0:
22-02-2011: Version 2.0 beta 2:
Somewhat more mature API, lots of bugs shaken out.
17-02-2011: Version 0.94:
tabMode: "spaces"
was modified slightly (now indents when something is selected).08-02-2011: Version 2.0 beta 1:
CodeMirror 2 is a complete rewrite of CodeMirror, no longer depending on an editable frame.
19-01-2011: Version 0.93:
save
method to instances created with fromTextArea
.17-12-2010: Version 0.92:
styleNumbers
option is now officially
supported and documented.onLineNumberClick
option added.onLoad
and
onCursorActivity
callbacks. Old names still work, but
are deprecated.11-11-2010: Version 0.91:
toTextArea
to update the code in the textarea.noScriptCaching
option (hack to ease development).02-10-2010: Version 0.9:
height: "dynamic"
more robust.enterMode
and electricChars
options to make indentation even more customizable.firstLineNumber
option.@media
rules by the CSS parser.22-07-2010: Version 0.8:
cursorCoords
method to find the screen
coordinates of the cursor.height: dynamic
mode, where the editor's
height will adjust to the size of its content.toTextArea
method in instances created with
fromTextArea
.27-04-2010: Version 0.67:
More consistent page-up/page-down behaviour
across browsers. Fix some issues with hidden editors looping forever
when line-numbers were enabled. Make PHP parser parse
"\\"
correctly. Have jumpToLine
work on
line handles, and add cursorLine
function to fetch the
line handle where the cursor currently is. Add new
setStylesheet
function to switch style-sheets in a
running editor.
01-03-2010: Version 0.66:
Adds removeLine
method to API.
Introduces the PLSQL parser.
Marks XML errors by adding (rather than replacing) a CSS class, so
that they can be disabled by modifying their style. Fixes several
selection bugs, and a number of small glitches.
12-11-2009: Version 0.65:
Add support for having both line-wrapping and
line-numbers turned on, make paren-highlighting style customisable
(markParen
and unmarkParen
config
options), work around a selection bug that Opera
reintroduced in version 10.
23-10-2009: Version 0.64:
Solves some issues introduced by the
paste-handling changes from the previous release. Adds
setSpellcheck
, setTextWrapping
,
setIndentUnit
, setUndoDepth
,
setTabMode
, and setLineNumbers
to
customise a running editor. Introduces an SQL parser. Fixes a few small
problems in the Python
parser. And, as usual, add workarounds for various newly discovered
browser incompatibilities.
31-08-2009: Version 0.63:
Overhaul of paste-handling (less fragile), fixes for several serious IE8 issues (cursor jumping, end-of-document bugs) and a number of small problems.
30-05-2009: Version 0.62:
Introduces Python
and Lua parsers. Add
setParser
(on-the-fly mode changing) and
clearHistory
methods. Make parsing passes time-based
instead of lines-based (see the passTime
option).