mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-22 18:31:57 +03:00
032a8def9e
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 |
||
---|---|---|
.. | ||
koenig-card-code.js | ||
koenig-card-hr.js | ||
koenig-card-html.js | ||
koenig-card-image.js | ||
koenig-card-markdown.js | ||
koenig-card.js | ||
koenig-editor.js | ||
koenig-link-input.js | ||
koenig-link-toolbar.js | ||
koenig-plus-menu.js | ||
koenig-slash-menu.js | ||
koenig-toolbar.js |