Skip to content
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

SDK: Unable to Edit Unpublished Page in Angular Example #30542

Conversation

rjvelazco
Copy link
Contributor

@rjvelazco rjvelazco commented Oct 31, 2024

This pull request includes several updates to the DotCMSPagesComponent in the Angular example application. The changes primarily focus on integrating editor-related functionality and improving code formatting.

Editor Integration:

  • Added DOTCMS_CLIENT_TOKEN import and injected it into the DotCMSPagesComponent to enable editor-related functionalities. [1] [2]
  • Implemented a new method #listenToEditorChanges to handle editor changes and update the component state accordingly.

Code Formatting:

  • Reformatted the import statements for better readability and maintainability.
  • Adjusted the method signature formatting for #setPageContent to be consistent with the rest of the codebase.

Video

issue-30440-sdk-unable-to-edit-unpublished-page-in-angular-example-feedback.mov

This PR fixes: #30440

…lar-example-feedback' of https://github.com/dotCMS/core into issue-30440-sdk-unable-to-edit-unpublished-page-in-angular-example-feedback
@rjvelazco rjvelazco marked this pull request as draft October 31, 2024 21:51
…lar-example-feedback' of https://github.com/dotCMS/core into issue-30440-sdk-unable-to-edit-unpublished-page-in-angular-example-feedback
@rjvelazco rjvelazco marked this pull request as ready for review October 31, 2024 21:59
@rjvelazco rjvelazco added this pull request to the merge queue Nov 1, 2024
@rjvelazco rjvelazco linked an issue Nov 1, 2024 that may be closed by this pull request
Merged via the queue into main with commit 3b0884e Nov 1, 2024
18 checks passed
@rjvelazco rjvelazco deleted the issue-30440-sdk-unable-to-edit-unpublished-page-in-angular-example-feedback branch November 1, 2024 16:03
dsolistorres pushed a commit that referenced this pull request Nov 5, 2024
This pull request includes several updates to the `DotCMSPagesComponent`
in the Angular example application. The changes primarily focus on
integrating editor-related functionality and improving code formatting.

### Editor Integration:

* Added `DOTCMS_CLIENT_TOKEN` import and injected it into the
`DotCMSPagesComponent` to enable editor-related functionalities.
[[1]](diffhunk://#diff-db19dde961c6af3dbddd86db7544e4ea4ff42baae9095cee4e3017c1d4dcb395L20-R26)
[[2]](diffhunk://#diff-db19dde961c6af3dbddd86db7544e4ea4ff42baae9095cee4e3017c1d4dcb395R66-R85)
* Implemented a new method `#listenToEditorChanges` to handle editor
changes and update the component state accordingly.

### Code Formatting:

* Reformatted the import statements for better readability and
maintainability.
* Adjusted the method signature formatting for `#setPageContent` to be
consistent with the rest of the codebase.

### Video


https://github.com/user-attachments/assets/7ee487ce-412f-4504-8ff1-f92dac86beee

---------

Co-authored-by: Jalinson Diaz <[email protected]>
spbolton pushed a commit that referenced this pull request Nov 11, 2024
This pull request includes several updates to the `DotCMSPagesComponent`
in the Angular example application. The changes primarily focus on
integrating editor-related functionality and improving code formatting.

### Editor Integration:

* Added `DOTCMS_CLIENT_TOKEN` import and injected it into the
`DotCMSPagesComponent` to enable editor-related functionalities.
[[1]](diffhunk://#diff-db19dde961c6af3dbddd86db7544e4ea4ff42baae9095cee4e3017c1d4dcb395L20-R26)
[[2]](diffhunk://#diff-db19dde961c6af3dbddd86db7544e4ea4ff42baae9095cee4e3017c1d4dcb395R66-R85)
* Implemented a new method `#listenToEditorChanges` to handle editor
changes and update the component state accordingly.

### Code Formatting:

* Reformatted the import statements for better readability and
maintainability.
* Adjusted the method signature formatting for `#setPageContent` to be
consistent with the rest of the codebase.

### Video


https://github.com/user-attachments/assets/7ee487ce-412f-4504-8ff1-f92dac86beee

---------

Co-authored-by: Jalinson Diaz <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

SDK: Unable to Edit Unpublished Page in Angular Example
4 participants