1
0
Fork 0
mirror of https://github.com/TryGhost/Ghost-Admin.git synced 2023-12-14 02:33:04 +01:00
Ghost-Admin/lib/koenig-editor/addon
Kevin Ansfield b174f2df14 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
..
components Koenig - Create image cards when pasting image files 2018-05-29 15:23:50 +01:00
options Koenig - Keep cursor on screen when typing or moving via keyboard (#1012) 2018-05-24 13:30:50 +01:00
templates/components Koenig - Create image cards when pasting image files 2018-05-29 15:23:50 +01:00
utils Koenig - Fixed error on Cmd+K with no selection 2018-05-22 14:01:03 +01:00