Skip to content
This repository has been archived by the owner on Jun 26, 2020. It is now read-only.

v0.2.0

Compare
Choose a tag to compare
@Reinmar Reinmar released this 03 Sep 18:24
· 374 commits to master since this release

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 native FileList because Safari and Edge do not support Symbol.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 to ImageUploadCommand#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 accepts insertAt position which allows customizing where the image will be inserted. Closes #45. (b90c8d7)

Other changes

BREAKING CHANGES

  • UploadImageCommand doesn't optimize the drop position itself anymore. Instead, a separate findOptimalInsertionPosition() 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.