Skip to content
This repository
  • 90 commits
  • 39 files changed
  • 12 comments
  • 9 contributors
Sep 19, 2012
Marijn Haverbeke Fix bad link in upgrade guide e6ed299
Sep 20, 2012
Marijn Haverbeke Don't rely on offsetParent being non-null
When the editor is hidden, they can be null.
3e12790
Marijn Haverbeke Avoid putting too huge a selection in the textarea a3747d5
Marijn Haverbeke Fix page-base coordinate queries
Closes #840
52e9b0a
Marijn Haverbeke Use a className in demo/marker.html
Should help trigger #836, and is cleaner anyway.
7c2f744
Marijn Haverbeke Repair gutterclick event
The line calculation was ignoring paddingTop and scrolling.
2038a1c
Marijn Haverbeke Increase getStateBefore's scan limit 81dbb5d
Marijn Haverbeke Add caveat to doc/internals.html 4c7fce0
Sep 25, 2012
Marijn Haverbeke Fix git URL in doc/compress.html 52d76de
Sep 26, 2012
Marijn Haverbeke Remove obsolete comment 86f340c
Marijn Haverbeke Fix bug in setOption("lineNumbers", true)
It would not propertly update the gutter width.
8ba41d0
Marijn Haverbeke Make sure line numbers take up whole number gutter width 4ac90cd
Marijn Haverbeke Solidify vertical scrolling gutter behavior 58b5072
Marijn Haverbeke Another adjustment to line number width tracking 0796298
Marijn Haverbeke Add cursorHeight option e079c4b
Marijn Haverbeke Fix page coordinate bug when document is scrolled be1d351
Sep 28, 2012
Marijn Haverbeke [util/simple-hint] don't close hint dialog when a modifier key is pre…
…ssed

Closes #853
03b2dc5
Marijn Haverbeke Mention JSHint in line widgets demo link
Closes #843
d69f0e1
Marijn Haverbeke Ensure block-indent doesn't use outdated state
Closes #844
3de785a
Marijn Haverbeke Fix setOption('tabindex', ...) c5b4b8c
张飞 Update lib/util/searchcursor.js
fix reverse Regexp match which cause memory leak
b4678ba
Marijn Haverbeke [demo/mustache] Recognize triple braces 6d229ea
Marijn Haverbeke Don't do overwrite when pasting 0b0df3f
ara.t.howard embedded ruby configuration 77c6a6f
Marijn Haverbeke [javascript&clike modes] Indent block comments with CodeMirror.Pass
This'll align them with the previous line. It's not a perfect solution,
but probably better than simply returning 0.

Issue #854
7104403
Marijn Haverbeke Add gittip donation link 4d5f315
Marijn Haverbeke [javascript mode] Fix suble parsing bug in for loop specs f0a8e54
Marijn Haverbeke Ensure line widgets have a higher z-index than the selection
Closes #855
b75b2d8
Marijn Haverbeke Make .CodeMirror-selected style less specific
To make it easier for themes to override it.

Fixes ambiance
e1e9aca
Oct 02, 2012
Brandon Frohs [markdown] Fix performance issue with regex matching of single closin…
…g chars (closes #862).

Also avoid a global variable that snuck through.
ed79977
Richard Wang Make runmode escaping global c6ddda1
Oct 03, 2012
Marijn Haverbeke Fix regression where a line's bidi order isn't updated on change b969550
Brandon Frohs [markdown] Fix bug with false positive matches of inline links.
- Inline links (square brackets followed by parentheses) cannot be separated by space (per Documentation and Dingus).

- Added test that checks both for this and correct highlighting of square brackets by themselves.
1e8b5ac
Brandon Frohs [Markdown] [GFM] Rewrite GFM to inherit changes from Markdown mode be…
…tter.

- Add options to Markdown mode to make it easier to extend
- Add GFM text overlay
  - SHA, User@SHA, and User/Project@SHA
  - #Num, User/#Num, and User/Project#Num
  - Vanilla URLs
- Add GFM-specific tests
- Fix overlay code so blankLine() is called
- Fix GFM for v3
d9c9f1b
Marijn Haverbeke Fix "update" event being fired when "viewportChange" is meant 5d193fe
Marijn Haverbeke Introduce the viewportMargin option b4c9083
Marijn Haverbeke Add test.html to .gitignore
I tend to have some variety of it sitting in the root dir.
faf6d1e
Marijn Haverbeke Fix regression due to being removed.
Closes #868
adc7cdc
Brandon Frohs Add note about mode dependency and links to highlighting tests. 49d9652
Oct 04, 2012
Marijn Haverbeke [simplehint util] Support completeSingle option
To turn off the behavior where it'll always complete when only
a single option is left.
6f8f652
Alex Sokolov showWidgets parameter for foldLines function
There are cases when widget could be a different repsentation of code, so while folding the code 
one may want to show widgets for hidden lines.

I added showWidgets parameter to foldLines, if set it allows widgets for hidden lines to be shown.
Here is a simple showcase where this functionality is needed:
http://uxcandy.com/~boomyjee/dayside/plugins/teapot-copy/
d3ec92e
Marijn Haverbeke Change foldLines to take an options object d0ae5f6
Marijn Haverbeke Missing semicolon 7ff8eff
Marijn Haverbeke [keymap/vim] Stop using .forEach on arrays 2b8b5ed
Marijn Haverbeke Fail a test in IE7
And ensure we don't set cursor height to something negative.

Closes #864
e4f3793
Marijn Haverbeke Set pre elements to overflow: visible
Some sites set them to auto, which messes up our cursor (and probably more)
15d910a
Oct 15, 2012
Marijn Haverbeke [util/simple-hint] Align completion dropdown with completed word
Add alignWithWord option to be able to turn that off.
7948d8c
Marijn Haverbeke Work around IE7 bogus clientWidth 8531034
Marijn Haverbeke Reorder operation in measureLine to save one relayout eae22b7
Marijn Haverbeke Fix drag/drop on IE9
Closes #857
808cee0
Marijn Haverbeke Fix reload-while-focused corruption problem in IE9 cb7df4c
Marijn Haverbeke Factor out DOM building for line into separate function a925cd2
Marijn Haverbeke Allow line widgets to be displayed above the line's text
Closes #875
73336a6
Brandon Frohs [css] Fix class matching.
This basically matches the CSS3 spec (except it doesn't match non-ascii characters).
87cd5b3
Marijn Haverbeke Place cursor elements after lines in DOM
So that, even though they share a z-index, they overlay the text and
marked spans.

Closes #883
91bfd16
Marijn Haverbeke Don't mutated makedSpans arrays
And add marker changes to the undo history, so that
un/redoing doesn't cause 'ghost' markers to appear.

Closes #882
0597b7a
Marijn Haverbeke Try to catch scroll wheel events on an element that's not the main sc…
…roller

By growing the vertical scrollbar to cover the whole editor when a wheel scroll
is taking place.

(This to avoid manually handling wheel events, for which there doesn't appear
to be any way that feels native across browsers.)

Closes #810
98a9274
Marijn Haverbeke Slight scrolling optimization
Issue #881
b31f73e
ks-ifware Fixed multi-line Lua comment recognition
Multi-line Lua comments start with "--[[", not "--["
cd387d7
Brandon Frohs Fix typo in manual. 705b0a7
Marijn Haverbeke Fix typo (lenght) 60192bb
Oct 16, 2012
Marijn Haverbeke More robust vertical movement
Detect when new position falls outside of a line, and retry. Also
replaces the kludgy widget compensation code.

Closes #886
fb58226
Marijn Haverbeke Stop using methods on lines
Simply use top-level functions + a plain object.
c1e9f3f
Marijn Haverbeke Stop using methods on history object f902ad1
Marijn Haverbeke Move some properties from doc to view
The reason for putting them in doc turned out to be misguided
5f3e554
Marijn Haverbeke Add a flattenSpans option 08f550b
shaund fix fullscreen demo to use wrapper, not scroll e5588dc
ComFreek Merged JavaScript and TypeScript mode as marijnh suggested c3d9c99
Marijn Haverbeke Make typescript mode recognize type declarations cb14cb6
Marijn Haverbeke Fix refactoring mistake 1f54e83
Marijn Haverbeke Don't use innerHTML = "" on content in IE<10
It messes up parent relationships in inner nodes, and we'll re-use
the marker and widget nodes later.

Closes #890
ef2284e
Marijn Haverbeke Widen scrollbar area on OS X Mountain Lion
Issue #811
b17c3cf
Marijn Haverbeke Yet another attempt at feature-detecting wheel delta values
Removes the kludge with the vertical scrollbar trying to handle
all wheel events.

Issue #810
fbee3d8
Marijn Haverbeke Fix removing of spans f437242
Marijn Haverbeke Remove copyright header
(git is the authoritative source of who wrote what)
00baee8
Marijn Haverbeke Add defineInitHook functionality 8ed1303
Oct 17, 2012
Marijn Haverbeke Cache DOM dimensions when building up content
To save round-trips on layout.

Speeds up rendering by 33% on Chrome.

Issue #892
57d9fee
Marijn Haverbeke Cache token style-to-class mangling b192c4b
Marijn Haverbeke Don't hide/show the line area during redraw when the change is minor
Because laying out the whole thing again is more work than what is
saved by manipulating it in hidden state.

Issue #892
929e5e7
Marijn Haverbeke On highlighting, only re-render lines that were actually changed
Issue #892
5ee7f81
Oct 18, 2012
Marijn Haverbeke Different approach to ensuring marker.clear works well with undo
The previous approach was completely misguided.

Issue #894
9fe2c69
Marijn Haverbeke Move line.className check to buildLineContent
This way, it is also used when measuring the line.
e2e96bb
Marijn Haverbeke Reduce default viewportMargin
Issue #881
d01d3c1
Marijn Haverbeke Add test for vertical movement across gaps and widgets d3e3d07
Marijn Haverbeke Add internal document tree visualization demo
As shown at GOTO Aarhus this month
075c33b
Oct 19, 2012
Marijn Haverbeke [javascript mode] Handle semicolon-less code better
Closes #898
579dcf1
Marijn Haverbeke [javascript mode] Also count on semicolon omittance in var lists
Issue #898
0985a76
Marijn Haverbeke Add expanded list of real-world uses as a separate page
So that I don't have to say 'no' so often
954ffc1
Oct 22, 2012
Marijn Haverbeke Add more real-world uses 7c7e3aa
Marijn Haverbeke Mark release 3.0beta2 0365519