The list of actions available for applet
Posted: Wed May 06, 2015 1:48 am
in the main applet function that configures the toolbar is the following code
Where is this "list of actions" mentioned on the last line?
Another question:
If I add a "save" action, I imagine I need to add a js function to send the contents to my server. Is there an example of how hook that action to a js function?
thanks,
Scott
Code: Select all
if (EditorPageConstants.PAGE_AUTHOR.equals(editorComponent
.getWSEditorAccess().getCurrentPageID())) {
WSAuthorComponentEditorPage authorPage = (WSAuthorComponentEditorPage) editorComponent
.getWSEditorAccess().getCurrentPage();
Map<String, Object> authorCommonActions = authorPage
.getActionsProvider().getAuthorCommonActions();
// You can look in the list of actions to see what's available.
Another question:
If I add a "save" action, I imagine I need to add a js function to send the contents to my server. Is there an example of how hook that action to a js function?
thanks,
Scott