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

TryGhost / Ghost-Admin / 3816 / 1
70%
master: 70%

Build:
DEFAULT BRANCH: master
Ran 16 May 2018 04:32PM UTC
Files 411
Run time 18s
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

16 May 2018 04:21PM UTC coverage: 72.213%. Remained the same
3816.1

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

Source Files on job 3816.1
  • Tree
  • List 0
  • Changed 3
  • Source Changed 0
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Build 3588
  • Travis Job 3816.1
  • 37dbc7f6 on github
  • Prev Job for on master (#3812.1)
  • Next Job for on master (#3817.1)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc