• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

TryGhost / Ghost-Admin / 3816
70%

Build:
DEFAULT BRANCH: master
Ran 16 May 2018 04:32PM UTC
Jobs 1
Files 411
Run time 20s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
3816

push

travis-ci

kevinansfield
Koenig - Fixed error when placing cursor on special formats after pasting

refs https://github.com/TryGhost/Ghost/issues/9623
- fixes `Maximum call stack size exceeded` error when you paste content containing `<code>` elements and then place the cursor at the end of one of those elements
  - this was occurring because the code in `inputModeDidChange()` was triggering another `inputModeDidChange() call
- use the private mobiledoc-kit methods to toggle editor state because we don't want to trigger `inputModeDidChange()` callbacks
- look at the editor state directly rather than going by what we _think_ the editor state should be based on the markers around the cursor
- fixes another subtle issue where after pasting if you placed the cursor at the end of the code format and started typing it would still be formatted as code - mobiledoc-kit has an odd behaviour where duplicate edit states for the markup are present so we have to loop over them rather than relying on a single `toggleMarkupState()` call

1812 of 2868 branches covered (63.18%)

4171 of 5776 relevant lines covered (72.21%)

47.49 hits per line

Jobs
ID Job ID Ran Files Coverage
1 3816.1 16 May 2018 04:32PM UTC 0
72.21
Travis Job 3816.1
Source Files on build 3816
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #3816
  • 37dbc7f6 on github
  • Prev Build on master (#3812)
  • Next Build on master (#3817)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc