Commits on Feb 20, 2015

  1. Make inputStyle an option, move relevant logic into TextareaInput

    Add a dummy ContentEditableInput
    marijnh committed Feb 20, 2015
    Configuration menu
    Copy the full SHA
    0dc2189 View commit details
    Browse the repository at this point in the history
  2. Wire up some actual logic to ContentEditableInput

    Simple things work.
    marijnh committed Feb 20, 2015
    Configuration menu
    Copy the full SHA
    f2b49d1 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    a1664f6 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    8bec859 View commit details
    Browse the repository at this point in the history
  5. Clean up some FIXMEs

    marijnh committed Feb 20, 2015
    Configuration menu
    Copy the full SHA
    3f45d4e View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    594a301 View commit details
    Browse the repository at this point in the history
  7. Further tweaks to selection polling

    Still doesn't work properly
    marijnh committed Feb 20, 2015
    Configuration menu
    Copy the full SHA
    af059b4 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    68b04f0 View commit details
    Browse the repository at this point in the history
  9. More selection nonsense

    marijnh committed Feb 20, 2015
    Configuration menu
    Copy the full SHA
    3082017 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    a3af04e View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    5df0ce7 View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    3ab057f View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    5e834b9 View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    4891ba3 View commit details
    Browse the repository at this point in the history
  15. Configuration menu
    Copy the full SHA
    4f20778 View commit details
    Browse the repository at this point in the history
  16. Fix focus issue in Firefox

    marijnh committed Feb 20, 2015
    Configuration menu
    Copy the full SHA
    2ba1798 View commit details
    Browse the repository at this point in the history
  17. Configuration menu
    Copy the full SHA
    9ddfe1f View commit details
    Browse the repository at this point in the history
  18. Configuration menu
    Copy the full SHA
    45229e2 View commit details
    Browse the repository at this point in the history
  19. Override tap events to avoid Chrome's magnifying behavior

    It apparently believes that if the editor's nodes are directly next to
    each other without margin, the user needs a magnifying glass to pick
    a cursor position.
    marijnh committed Feb 20, 2015
    Configuration menu
    Copy the full SHA
    0dc7c20 View commit details
    Browse the repository at this point in the history
  20. Configuration menu
    Copy the full SHA
    72d5c41 View commit details
    Browse the repository at this point in the history
  21. Configuration menu
    Copy the full SHA
    4734f2f View commit details
    Browse the repository at this point in the history
  22. Style in-editor selections to match default selection style

    So that the contenteditable input style doesn't look silly
    on desktop.
    marijnh committed Feb 20, 2015
    Configuration menu
    Copy the full SHA
    e3748a2 View commit details
    Browse the repository at this point in the history
  23. Configuration menu
    Copy the full SHA
    9c874be View commit details
    Browse the repository at this point in the history
  24. Force redraw of native selection when it is in a bogus state

    I.e. when the cursor is directly in the editor's top node or outside of a line's
    <pre> node.
    marijnh committed Feb 20, 2015
    Configuration menu
    Copy the full SHA
    0f227d3 View commit details
    Browse the repository at this point in the history
  25. Configuration menu
    Copy the full SHA
    8956ff5 View commit details
    Browse the repository at this point in the history
  26. Configuration menu
    Copy the full SHA
    54df599 View commit details
    Browse the repository at this point in the history
  27. Configuration menu
    Copy the full SHA
    6ed2b86 View commit details
    Browse the repository at this point in the history
  28. Configuration menu
    Copy the full SHA
    f396f8f View commit details
    Browse the repository at this point in the history
  29. Configuration menu
    Copy the full SHA
    42c3cad View commit details
    Browse the repository at this point in the history
  30. Configuration menu
    Copy the full SHA
    3baa1c1 View commit details
    Browse the repository at this point in the history
  31. Configuration menu
    Copy the full SHA
    505f696 View commit details
    Browse the repository at this point in the history
  32. Configuration menu
    Copy the full SHA
    3f60ed5 View commit details
    Browse the repository at this point in the history
  33. Don't immediately focus on click in IE

    It can create a kind of phantom-focus state where the textarea
    is focused but you can't type into it.
    
    Issue #3041
    marijnh committed Feb 20, 2015
    Configuration menu
    Copy the full SHA
    60ef248 View commit details
    Browse the repository at this point in the history
  34. When polling input, set prevInput before ending the operation

    Since that might end up calling resetInput and creating an
    inconsistent state.
    
    Issue #3046
    marijnh committed Feb 20, 2015
    Configuration menu
    Copy the full SHA
    0f5030a View commit details
    Browse the repository at this point in the history
  35. Fix for copying large chunks of text

    Selecting and copying a large chunk of text places a single dash into clipboard.
    
    This is related to line 1285, where the input's content is trimmed for performance:
    
    https://github.com/codemirror/CodeMirror/blob/mobile/lib/codemirror.js#L1285
    
        minimal = hasCopyEvent &&
          (range.to().line - range.from().line > 100 || (selected = cm.getSelection()).length > 1000);
        var content = minimal ? "-" : selected || cm.getSelection();
    
    The problem is apparently a typo during refactoring/renaming from 'd' on the master branch to 'input' here.
    mihailik authored and marijnh committed Feb 20, 2015
    Configuration menu
    Copy the full SHA
    6873df1 View commit details
    Browse the repository at this point in the history
  36. Don't try to use contenteditable=plaintext-only

    Since Mobile Chrome's clipboard API is broken and does not let us
    intercept paste events, we need full contenteditable to be able
    to paste code with newlines.
    
    Issue #3062
    marijnh committed Feb 20, 2015
    Configuration menu
    Copy the full SHA
    926ce11 View commit details
    Browse the repository at this point in the history
  37. Configuration menu
    Copy the full SHA
    7ae24f7 View commit details
    Browse the repository at this point in the history
  38. Configuration menu
    Copy the full SHA
    2348657 View commit details
    Browse the repository at this point in the history
  39. 2 Configuration menu
    Copy the full SHA
    6ef5f8b View commit details
    Browse the repository at this point in the history
  40. Configuration menu
    Copy the full SHA
    5cf6e87 View commit details
    Browse the repository at this point in the history
  41. Handle double- and triple-tap events ourselves

    Since preventDefaulting the first touchend event means the native
    behavior won't happen anymore, this is seems to be the only way
    to make multi-tap work for iOS.
    marijnh committed Feb 20, 2015
    Configuration menu
    Copy the full SHA
    2ec7737 View commit details
    Browse the repository at this point in the history
  42. [contenteditable input] Only return true from pollContent when an act…

    …ual change was found
    
    So that styling content causes a redraw, removing the style
    marijnh committed Feb 20, 2015
    Configuration menu
    Copy the full SHA
    025d1a8 View commit details
    Browse the repository at this point in the history
  43. Configuration menu
    Copy the full SHA
    b6fed25 View commit details
    Browse the repository at this point in the history
  44. [contenteditable input] Fix another bug in pollContent

    Typing the same character multiple times in a row would
    cause a character to be deleted.
    marijnh committed Feb 20, 2015
    Configuration menu
    Copy the full SHA
    9914eb7 View commit details
    Browse the repository at this point in the history
  45. Configuration menu
    Copy the full SHA
    8f74e74 View commit details
    Browse the repository at this point in the history
  46. Document inputStyle option

    marijnh committed Feb 20, 2015
    Configuration menu
    Copy the full SHA
    c1e30b8 View commit details
    Browse the repository at this point in the history
  47. Mark release 5.0

    marijnh committed Feb 20, 2015
    Configuration menu
    Copy the full SHA
    289b647 View commit details
    Browse the repository at this point in the history