Ghost/ghost/admin/lib/koenig-editor/addon/components
Kevin Ansfield 032a8def9e Koenig - Create image cards when pasting image files
refs https://github.com/TryGhost/Ghost/issues/9623
- detect pastes that contain image files and insert a card for each, setting `payload.files` to the `File` instance grabbed from the clipboard
- update the `addComponent` hook to ensure the `payload.files` array is preserved, browsers do not allow `File` instances to be copied
- update `{{koenig-card-image}}` to look for a `payload.files` value to auto-upload it via it's internal `{{gh-uploader}}`
- NOTE: browser support for accessing image files on paste varies:
    - Safari: will paste all images
    - Chrome: will only paste the first image
    - Firefox: will not paste any images
2018-05-29 15:23:50 +01:00
..
koenig-card-code.js Koenig - Fix card tests (missing action placeholders) 2018-05-23 11:59:20 +01:00
koenig-card-hr.js Koenig - Fix card tests (missing action placeholders) 2018-05-23 11:59:20 +01:00
koenig-card-html.js Koenig - Fix card tests (missing action placeholders) 2018-05-23 11:59:20 +01:00
koenig-card-image.js Koenig - Create image cards when pasting image files 2018-05-29 15:23:50 +01:00
koenig-card-markdown.js Koenig - Fix card tests (missing action placeholders) 2018-05-23 11:59:20 +01:00
koenig-card.js Koenig - Fixed card creation from plus menu 2018-05-23 14:11:42 +01:00
koenig-editor.js Koenig - Create image cards when pasting image files 2018-05-29 15:23:50 +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 - Fixed creation of unnecessary undo states 2018-05-23 14:20:03 +01:00
koenig-slash-menu.js Koenig - Added Code Block card to (+) and / menus 2018-05-17 12:20:02 +01:00
koenig-toolbar.js Koenig - Fixed "set on destroyed object" error 2018-05-28 16:54:16 +01:00