This repository has been archived by the owner on Jun 26, 2020. It is now read-only.
v0.2.0
Bug fixes
- [Safari, Edge] The image upload (button) feature will not throw an error anymore when trying to access picked files. The feature should not use
for...of
loop on nativeFileList
because Safari and Edge do not supportSymbol.iterator
for it yet. Closes #35. (f4efd9b) - An image dropped on another image will not redirect the browser to the file's path. Closes #32. (4f533be)
- Bound
ImageUploadButton#isEnabled
toImageUploadCommand#isEnabled
. Closes #43. (ba6de66) - Fixed two issues related to dropping images. First, when dropping a file into an empty paragraph, that paragraph should be replaced with that image. Second, drop position should be read correctly when the editor is focused upon drop. Closes #42. Closes #29. (fec452d)
- Image will be inserted after the block if the selection is placed at the block's end. Closes #7. (70742f9)
- When image upload is aborted, now the "image placeholder" element is permanently removed so it is not reinserted on undo. Closes #38. (aff6382)
Features
- Responsive images support in image upload. Closes #34. (9a022a2)
- The
ImageUploadCommand
now acceptsinsertAt
position which allows customizing where the image will be inserted. Closes #45. (b90c8d7)
Other changes
- Aborting upload when image is removed and removing image on upload error. Closes #2. (c3bbb57)
- Aligned the implementation to the new Command API (see https://github.com/ckeditor/ckeditor5-core/issues/88). (3d97b81)
- Changed from original to default image. Closes #49. (d8d61f3)
- Cleaned up SVG icons. (ab81012)
- Optional notification title when upload fails. Closes #30. (1a6306c)
BREAKING CHANGES
UploadImageCommand
doesn't optimize the drop position itself anymore. Instead, a separatefindOptimalInsertionPosition()
function was introduced.UploadImageCommand
doesn't verify the type of file anymore. This needs to be done by the caller.- The command API has been changed.
0.1.0 (2017-05-07)
Features
- Initial implementation. Closes #1.