Skip to content

Commit

Permalink
fix: address CR comments
Browse files Browse the repository at this point in the history
- jira: SITES-21286
  • Loading branch information
irenelagno committed Apr 26, 2024
1 parent 1986906 commit 2ac326c
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion gatsby-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ module.exports = {
path: "/services/aem-universal-editor/api/item-types-renderers/"
},
{
title: "Supported events",
title: "Working with events",
path: "/services/aem-universal-editor/api/events/"
},
{
Expand Down
6 changes: 3 additions & 3 deletions src/pages/services/aem-universal-editor/api/commons/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,9 @@ Editor and extension and needed if extension provides custom UI.
- `methods` - objects with extension code exposed to the Universal Editor console. All methods are grouped into
namespaces that represents extension points provided by the Universal Editor.
Currently, the following **namespaces** are available:
- _headerMenu_, that allows to add buttons to the header of the Universal Editor;
- _rightPanel_, that allows to add custom content under the rails to the right panel of the Universal Editor;
- _canvas_, that allows to add custom renderer for data types
- _headerMenu_, that allows to add buttons to the header of the Universal Editor;
- _rightPanel_, that allows to add custom content under the rails to the right panel of the Universal Editor;
- _canvas_, that allows to add custom renderer for data types

```js
import { register } from "@adobe/uix-guest";
Expand Down
4 changes: 2 additions & 2 deletions src/pages/services/aem-universal-editor/api/events/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ contributors:

# Working with Events

the Universal Editor sends defined events to remote applications. In case the remote application has no custom event listener for the sent event, a fallback event listener provided by the universal-editor-cors package is executed.
The Universal Editor sends defined events to remote applications. In case the remote application has no custom event listener for the sent event, a fallback event listener provided by the universal-editor-cors package is executed.

### Working with Events

Expand All @@ -29,7 +29,7 @@ For instance, here's an example of how to subscribe to the "aue:ui-select" event
```

If your business logic requires sending an event to the Universal Editor, you can use the `dispatchEvent` method.
Here's an example of how to dispatch the "aue:ui-select" event:
Here's an example of how to dispatch the `aue:ui-select` event:

```js
useEffect(() => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ export default () => {
}

// If you need to interact with an AEM instance
// const connection = await attach({ id: extensionId });
const connection = await attach({ id: extensionId });

return (
<Provider theme={lightTheme} colorScheme="light">
Expand Down Expand Up @@ -159,4 +159,4 @@ Examples: `ctrl+k`, `ctrl+shift+s`, `shift+arrowup`, `c.`

## Limitation

Each click on the icon corresponding to the panel will result in the re-rendering of that panel. The panel content is not cached and will be re-ren
Each click on the icon corresponding to the panel will result in the re-rendering of that panel. The panel content is not cached and will be re-rendered

0 comments on commit 2ac326c

Please sign in to comment.