/
Embedded Widget communication

Embedded Widget communication

If Kudo is bound to a dedicated widget in a given page, you can run commands directly using the editor's JS API.

Run command whitelisted in Default Files\OEM Commands\commands.xml:

window.getXeDocument().RunCheckedCmd(commandString);

 

Where the commandString is your command you’d like to run including parameters you want to pass.

 

Either

    "_YourCommand Param1 Param2"

or

    "_YourCommand\nParam1\nParam2"

 

RunCheckedCmd returns a promise. If you are interested in the result, call it like

window.getXeDocument().RunCheckedCmd(commandString).then(function (result) {});

 

Related content

Partner Web Application → Kudo Editor iframe
Partner Web Application → Kudo Editor iframe
More like this
Process to request token
Process to request token
Read with this
Kudo api server with UI
Kudo api server with UI
More like this
ARES Kudo Server Configuration
ARES Kudo Server Configuration
Read with this
Server to Client Communication
Server to Client Communication
More like this
Kudo Editor iframe → Partner Web Application
Kudo Editor iframe → Partner Web Application
More like this