1. 09 Mar, 2016 1 commit
  2. 08 Mar, 2016 3 commits
    • Nick Stenning's avatar
      Merge pull request #3065 from hypothesis/url-polyfill-update · 77db5fd6
      Nick Stenning authored
      Fix installation of URL polyfill with js-polyfills v0.1.16
      77db5fd6
    • Robert Knight's avatar
      Fix installation of URL polyfill with js-polyfills v0.1.16 · e76f270b
      Robert Knight authored
      js-polyfills v0.1.15 used to install the polyfill on
      `this.URL`, where `this` was set to module.exports in
      the context of a Browserify bundle. Consequently the result
      was available as `require('js-polyfills/url').URL`.
      
      As of v0.1.16 however, it installs the polyfill on `self`,
      which is the Window object in the context of the browser
      and so `require('js-polyfills/url').URL` is undefined.
      
      Fixes #3064
      e76f270b
    • Robert Knight's avatar
      Remove the MathJax math rendering fallback · 715b1a52
      Robert Knight authored
      The MathJax fallback was inadvertently broken during recent
      refactoring of the <markdown> component and has long been untested.
      
      This removes the fallback for the moment and in doing so
      provides a clearer definition of what math we support -
      the subset supported by KaTeX.
      
      Looking at our public annotations, there is very little use
      of complex math currently.
      
      When we find a clear use case for it, we can revisit supporting
      additional math beyond what KaTeX supports.
      
      See https://trello.com/c/9KkjsO6v/66-remove-the-mathjax-fallback
      for more background.
      715b1a52
  3. 07 Mar, 2016 5 commits
  4. 05 Mar, 2016 2 commits
  5. 04 Mar, 2016 8 commits
  6. 03 Mar, 2016 2 commits
  7. 02 Mar, 2016 2 commits
    • Robert Knight's avatar
      Use Element.scrollIntoView() to scroll new annotations into view · dbbeadf8
      Robert Knight authored
      The previous method of scrolling a newly created annotation
      into view in the sidebar resulted in the input field for
      the new annotation losing focus.
      
      Note that only top level annotations have an 'id'
      attribute set on the corresponding HTML element.
      It might make sense to change this in future although
      it would add an extra binding. For now I've just noted this.
      dbbeadf8
    • Robert Knight's avatar
      Focus annotation editor when a new annotation is created · ec0e0f9f
      Robert Knight authored
      When a new annotation card was added, the sidebar tried
      to focus it but this failed because the sidebar iframe
      itself did not have focus.
      
      When a new annotation is created, first focus the sidebar
      in the Annotator host and then let the sidebar focus the
      input field.
      
       * Remove unnecessary use of the $timeout service which
         triggers a root scope digest.
      ec0e0f9f
  8. 01 Mar, 2016 8 commits
  9. 29 Feb, 2016 6 commits
  10. 26 Feb, 2016 3 commits
    • Sean Hammond's avatar
      Merge pull request #3025 from hypothesis/move-token-to-app · 21f899d1
      Sean Hammond authored
      Move API token model to app
      21f899d1
    • Robert Knight's avatar
      Preserve selection when applying block formatting · 692ea39a
      Robert Knight authored
      Previously all modified lines in a block were replaced in one
      call to replaceText() when applying block formatting, which
      lost the selection.
      
      This rewrites the command to transform each line separately
      which preserves the selection.
      692ea39a
    • Robert Knight's avatar
      Refactor markdown command insertion · c069f232
      Robert Knight authored
       * Separate the logic for transforming the input field
         from the logic for actually reading the state of
         the input field and applying changes.
      
         This enables testing of the commands without
         instantiating the component.
      
         Toolbar commands are functions which take
         the current state of the input field and return
         the updated state.
      
       * Add tests for the individual commands and use
         of the commands in the markdown editor.
      c069f232