-
Notifications
You must be signed in to change notification settings - Fork 275
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
[sitecore-jss] [sitecore-jss-angular] Field metadata chromes in editMode metadata #1926
Conversation
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.
Thank you Stas!
The implementation is solid and I left a few comments about unit tests.
packages/sitecore-jss-angular/src/components/date.directive.spec.ts
Outdated
Show resolved
Hide resolved
packages/sitecore-jss-angular/src/components/date.directive.spec.ts
Outdated
Show resolved
Hide resolved
packages/sitecore-jss-angular/src/components/date.directive.spec.ts
Outdated
Show resolved
Hide resolved
packages/sitecore-jss-angular/src/components/base-field.directive.ts
Outdated
Show resolved
Hide resolved
packages/sitecore-jss-angular/src/components/base-field.directive.ts
Outdated
Show resolved
Hide resolved
packages/sitecore-jss-angular/src/components/image.directive.spec.ts
Outdated
Show resolved
Hide resolved
packages/sitecore-jss-angular/src/components/link.directive.spec.ts
Outdated
Show resolved
Hide resolved
packages/sitecore-jss-angular/src/components/link.directive.spec.ts
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.
Looks 👍 Just one small addition and merge conflict to resolve and it's fully ready.
Description / Motivation
This PR enables editing support for the fields in editing mode for editMode metadata. When a field is rendered in
metadata
mode it will be surrounded with open and closecode
elements with metadata content. This elements indicate location of the field and provide required metadata to enable editing in editor applications like Pages.The fields with this functionality are:
[sitecore-jss-angular] image.directive.ts
[sitecore-jss-angular] date.directive.ts
[sitecore-jss-angular] rich-text.directive.ts
[sitecore-jss-angular] text.directive.ts
[sitecore-jss-angular] link.directive.ts
[sitecore-jss-angular] router-link.directive.ts
[sitecore-jss-angular] generic-link.directive.spec.ts
Testing Details
Types of changes