On IE8 only scrollHeight - d.scroller.clientHeight + d.scrollbarV.clientHeight evaluates to -ve in some cases. Guard that with returning 0 in that case. Seems a bug in IE8, so this can be treated as a workaround.
Don't generate <span class="cm-"> nodes when token() returns only lin…
…e-foo/line-background-foo styles.
Remove tests using getElementsByTagName
The method isn't present on all supported platforms, and these tests tested someting very obscure, and already failed on the v4 branch which representes the editor content differently. Issue #2152
[vim keymap] Fix to moveTillCharacter
Return null from moveTillCharacter if nothing is found, so that if a deletion operation is active but no match was found, nothing gets deleted. Add a unit test for moveTillCharacter.
Make hasFocus use document.activeElement, rather than internal flag
This way, it synchronously returns the current value, rather than only being updated when an async focus/blur event fires. Closes #2151
[css mode] Added missing animation-fill-mode property
Also resorted the next few lines so one would not stick out farther than the others. https://developer.mozilla.org/en-US/docs/Web/CSS/animation-fill-mode
[vim] Fix unescaping of escaped strings for search and replace
Add unit tests.
[less] don't confuse less mode..
..with the newly added simple support for @Keyframes
[vim] Use key character instead of key identifier to map all characte…
…r keys without modifiers
Added "historyAdded" doc event.
Added a doc event "historyAdded" which is dispatched when a new entry is added to the document history. It is not dispatched when a history entry is amended. This allows CM's history to be integrated easily into application level undo/redo. Signed-off-by: Grant Skinner <info@gskinner.com>
Issue #2180
[css mode] Update Grid Layout property names
Some properties were outdated and some other were missing according to last version of the CSS Grid Layout spec: http://www.w3.org/TR/css3-grid-layout/#property-index
[merge addon] Add trailing semicolon too diff_match_patch.js
(otherwise there is an error if all is minified in one file)
[sql plsql] Add builtin: bigserial, serial...
... UNLOGGED, add keyword: cascade
Enable some more IE workarounds in IE11
It seems that, though they changed their userAgent string completely, they did keep most of their bugs. Fixes copy/select-all from context menu. Closes #1983
Focus the window when the editor is clicked
Prevents issue where the cursor blinks but an iframe is focused, so typing doesn't end up in the editor.
[markdown mode] Rename header2 -> header-2
and `formatting-header4` -> `formatting-header-4` for consistency.
use correct classes for headers
The header classes for specific levels of headers, which should set the size of each header did not match the classes in the editor. This commit fixes that.
Fix another case of bootstrap blues
(Border-sizing on the CodeMirror-linenumber class) Issue #2210
[runmode addon] Fixed resolveMode in runmode.node
This fix has been modelled after the getMode function in runmode.node in v3.20.0
[rst mode] Swap mode definitions
So that the default mode when this is loaded first is actually a working mode. Also: indent the file to correspond to the rest of the codebase. Closes #2223