-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Media Picker v3 #9461
Media Picker v3 #9461
Conversation
…pes' into v8/feature/AB9263-Refine-media-types
...b.UI.Client/src/views/propertyeditors/mediapicker3/prevalue/mediapicker3.crops.controller.js
Show resolved
Hide resolved
src/Umbraco.Web.UI.Client/src/common/directives/components/imaging/umbimagecrop.directive.js
Outdated
Show resolved
Hide resolved
src/Umbraco.Web.UI.Client/src/common/directives/components/imaging/umbimagecrop.directive.js
Outdated
Show resolved
Hide resolved
src/Umbraco.Web.UI.Client/src/common/directives/components/imaging/umbimagecrop.directive.js
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
C# parts look good. Found some minor things that I will fix and lest some questions.
src/Umbraco.Core/PropertyEditors/ValueConverters/JsonValueConverter.cs
Outdated
Show resolved
Hide resolved
src/Umbraco.Web/PropertyEditors/ValueConverters/MediaPickerWithCropsValueConverter.cs
Outdated
Show resolved
Hide resolved
src/Umbraco.Web.UI.Client/src/common/directives/components/imaging/umbimagecrop.directive.js
Outdated
Show resolved
Hide resolved
…mbraco/Umbraco-CMS into v8/feature/AB7941-MediaPicker3
What a wonderful new feature. Let's get this one merged! 🎈 🥳 🎉 |
@madsrasmussen after looking at #9887 I noticed the Media Picker v3 was included in the branch. I had a quick glance at the new feature and wonder how the remove the crops here: I can refresh the page, but may loose some already defined crops and when clicking "Add", it isn't possible to save the datatype or submit that row. I could of course fill in some dummy data and afterwards remove the additional rows/crops, but it may not be obvious. It could also be useful if Media Picker v3 and Image Cropper could share the prevalue editor to define crops, but would probably cause issues with the existing saved data for Image Cropper prevalues, so maybe in a v2 of Image Cropper. |
@bjarnef good points. I guess the Remove button could be present at all times, but in order to make the "create"-flow intuitive, it should be named "cancel" for first-time editing of a crop. I also agree on using this for Image Cropper, but we will need to ensure that its not a breaking change :-) Both two great proposals, if you are in for it feel free to make PRs :-) |
@nielslyngsoe I could look at a PR for this, but will probably wait until it is part of |
angular | ||
.module("umbraco") | ||
.component("umbMediaPicker3PropertyEditor", { | ||
templateUrl: "views/propertyeditors/MediaPicker3/umb-media-picker3-property-editor.html", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
FYI: ".../MediaPicker3/..." is the wrong casing compared to the folder on disk. This has been changed in v9, due to issues on Linux.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, would it be a help to change that in v8 as well? for future merging? Feel free to do so.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, there are no benefits of doing so..
Would it be a good idea to store alt-texts in the future, locally, just as these crops? Right now its a bit annoying that this feature is only available in RTE and Grid. We usually have fields (multiple / language since variantions on media is not available) for this on the media, but there are cases where the image alt context changes depending on the page and a textfield below the media picker is needed. |
This new media picker supports three new main features, Controlling accepted Media Types, Local Image Crops, and Copy/Paste.
This Media Picker will at some point replace the v2 Media Picker we have today. Most likely v2 will not exist in Umbraco v.9. Tomorrow it will just become an additional choice.
The features of this Media Picker is made clear by looking at the DataType configuration:
Test notes:
Documentation PR:
umbraco/UmbracoDocs#3106
Additional fixes:
#9948
#10111
Note - breaking change
Please note that a subtle breaking change slipped into this PR, for details see: #11858