aue:content-move

移動元件時會觸發aue:content-move事件。

裝載是元件、來源容器和目標容器。

{
    details: {
        from: string;                   // container we move the component from
        component: string;              // component we move
        to: string;                     // container we move the component to
        before: string;                    // before which component shall we place the component
        request: request payload;       // what is sent to the service
        response: response payload;     // what is returned by the service
    }
}

aue:content-patch

當在屬性面板中更新元件的資料時,就會觸發aue:content-patch事件。

裝載是已更新屬性的JSON修補程式。

{
    details: {
        patch: {
            name: string;               // attribute which is updated
            value: string;              // new value which is stored to the attribute
        },
        request: request payload;       // what is sent to the service
        response: response payload;     // what is returned by the service
    }
}

aue:content-remove

從容器移除元件時會觸發aue:content-remove事件。

裝載是已移除元件的專案ID。

{
    details: {
        resource: string;               // the resource which got removed
        request: request payload;       // what is sent to the service
        response: response payload;     // what is returned by the service
    }
}

aue:content-update

當在內容中更新元件的屬性時,就會觸發aue:content-update事件。

裝載是更新的值。

{
    details: {
        value: string;                  // updated value
        request: request payload;       // what is sent to the service
        response: response payload;     // what is returned by the service
    }
}

傳遞裝載

對於所有內容更新事件,請求的裝載以及回應裝載會傳遞至事件。 例如,對於更新呼叫:

請求裝載:

{
  "connections": [
    {
      "name": "aemconnection",
      "protocol": "aem",
      "uri": "https://author-p7452-e12433.adobeaemcloud.com"
    }
  ],
  "target": {
    "resource": "urn:aemconnection:/content/dam/wknd-shared/en/magazine/arctic-surfing/aloha-spirits-in-northern-norway/jcr:content/data/master",
    "type": "text",
    "prop": "title"
  },
  "value": "Alhoa Spirit Northern Norway!"
}

回應裝載

{
    "updates": [
        {
            "resource": "urn:aemconnection:/content/dam/wknd-shared/en/magazine/arctic-surfing/aloha-spirits-in-northern-norway/jcr:content/data/master",
            "prop": "title",
            "type": "text"
        }
    ]
}

UI事件

aue:ui-preview

當頁面的編輯模式變更為​ 預覽 ​時,就會觸發aue:ui-preview事件。

此事件的裝載是空的。

{
    details: {}
}

aue:ui-edit

當頁面的編輯模式變更為​ 編輯 ​時,就會觸發aue:ui-edit事件。

此事件的裝載是空的。

{
    details: {}
}

aue:ui-viewport-change

檢視區大小變更時會觸發aue:ui-viewport-change事件。

裝載是檢視區的維度。

{
    details: {
        height: number?;        // height of the viewport. Undefined when fullscreen
        width: number?;         // width of the viewport. Undefined when fullscreen
    }
}

aue:initialized

會觸發aue:initialized事件,讓遠端頁面知道它已成功載入通用編輯器中。

此事件的裝載是空的。

{
    details: {}
}