/
JavaScript Events
Information Classification: External Restricted.
See https://www.chili-publish.com/security
JavaScript Events
You can listen to events using this method .addListener()
.
If using PublisherConnector
The first parameter takes an event name (string) and a callback function to be called when the event is fired off.
await publisherConnector.addListener(
"FrameMoveFinished",
target => console.log("Frame moved with id " + target)
);
Ā
If using the editorObject in Actions or the console
window.OnEventListener = (event, target) => {
if (event == "FrameMovedFinished") {
console.log("Frame moved with id " + target)
}
}
editorObject.AddListener("FrameMoveFinished");
Ā
See https://chilipublishdocs.atlassian.net/wiki/spaces/CPDOC/pages/1412202501/Editor+Events for a list of all available events
Ā
Related content
JavaScript Navigation
JavaScript Navigation
More like this
Document Object Model
Document Object Model
Read with this
Editor Events
Editor Events
More like this
Working with Fonts in Javascript
Working with Fonts in Javascript
Read with this
Accessing selected frames and other resources
Accessing selected frames and other resources
More like this
Javascript Variable Input Forms
Javascript Variable Input Forms
Read with this
All information on this page must be treated as External Restricted, or more strict. https://www.chili-publish.com/security