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

Image resizer #94

Merged
merged 96 commits into from
Aug 19, 2019
Merged

Image resizer #94

merged 96 commits into from
Aug 19, 2019

Conversation

mlewand
Copy link
Contributor

@mlewand mlewand commented Jul 22, 2019

Suggested merge commit message (convention)

Feature: Introduced image widget resizer. See ckeditor/ckeditor5#5167.


Additional information

  • PoC focused on image resizer.
  • This PoC includes three interchangeable resizing strategies.
  • Unit tests might fail for the time being as I did not add test coverage yet.

mlewand added 30 commits June 24, 2019 17:46
Reason why I'm adding a plugin is that in the end resizer feature needs editor instance.
Note current implementation supports only top-left corner.
Although it's a very simplified approach, also it's triggered upon first resize activation.
… placed in editable in order to obtain image offset from widget wrapper. The same offset is applied to the resizer wrapper so that it is aligned with the image.
…quire access to model item of resized element (here an image).

Most of the logic has been moved to the ResizeContext type. Now the idea is to create a ResizeManager that will include zero or more contexts during the runtime and will manage (only one) active context during the resize.
…erter.

Upcast converter is still missing, will follow soon.
The goal is to always pick the largest resized size allowed by resize cursor position.
@Reinmar Reinmar force-pushed the t/ckeditor5-image/241 branch from 54e0650 to 0f09252 Compare August 13, 2019 09:37
@Reinmar Reinmar merged commit c84cd73 into master Aug 19, 2019
@Reinmar Reinmar deleted the t/ckeditor5-image/241 branch August 19, 2019 08:37
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants