Ghost/ghost/admin/lib/koenig-editor
Kevin Ansfield 11cab899f0
🐛 Fixed images sometimes being stored as data: URLs when copy/pasting from other editors (#16707)
refs https://github.com/TryGhost/Team/issues/2887

Images could sometimes be pasted into the editor (noticed especially with Google Docs) with `data:` URLs rather than typical `https:` URLs. That causes problems because data URLs are large binary blobs that get stored in the `posts` table and passed through many areas of the system that doesn't expect large binary blobs, causing knock-on effects.

- added handling to our editor's image card to detect when the card is displayed in the editor with a `data:` URL and if it was then it converts it to a file and uploads it so the image can be stored and displayed the same way as any other image
 - handles uploads on both paste and opening a post in the editor that was previously saved with a `data:` URL
2023-04-25 15:58:07 +01:00
..
addon 🐛 Fixed images sometimes being stored as data: URLs when copy/pasting from other editors (#16707) 2023-04-25 15:58:07 +01:00
app removed before after card (#16341) 2023-02-27 14:18:48 -06:00
docs/specs Koenig reboot - rich text (#952) 2018-01-30 10:01:07 +00:00
public/icons/koenig Little tweaks for header settings panel and added add icon 2021-12-15 19:09:17 +00:00
index.js Koenig reboot - rich text (#952) 2018-01-30 10:01:07 +00:00
package.json Fixed "Could not find module 'ember-keyboard'" error thrown by gif card 2022-08-02 15:51:59 +01:00