Ghost/ghost/admin/lib/koenig-editor/addon/components
Kevin Ansfield 4c2dcc5354 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
2018-05-16 17:21:34 +01:00
..
koenig-card-code.js Koenig - Initial code card with MD expansion 2018-05-15 15:26:34 +01:00
koenig-card-hr.js Koenig - Add card options for automatic edit/select after insert 2018-04-18 10:52:49 +01:00
koenig-card-html.js Koenig - Fixed HTML card init error 2018-05-07 15:40:11 +01:00
koenig-card-image.js Koenig - Made full width images work with closed sidebar (#1014) 2018-05-08 10:26:46 +01:00
koenig-card-markdown.js Koenig - Switch this.get for ES5 getters 2018-05-01 17:13:53 +01:00
koenig-card.js Koenig - Switch this.get for ES5 getters 2018-05-01 17:13:53 +01:00
koenig-editor.js Koenig - Fixed error when placing cursor on special formats after pasting 2018-05-16 17:21:34 +01:00
koenig-link-input.js Koenig - Switch this.get for ES5 getters 2018-05-01 17:13:53 +01:00
koenig-link-toolbar.js Koenig - Switch this.get for ES5 getters 2018-05-01 17:13:53 +01:00
koenig-plus-menu.js Koenig - Replace custom CSS classes with Spirit 2018-05-02 15:54:22 +01:00
koenig-slash-menu.js Koenig - Fixed deletion of / not closing the /-menu 2018-05-14 15:48:29 +01:00
koenig-toolbar.js Koenig - Strip all formatting except links when converting to a heading 2018-05-15 12:32:44 +01:00