Changes for page XWiki JavaScript API

Last modified by Simon Urli on 2022/09/14

<
From version < 2.1 >
edited by Jerome
on 2009/11/10
To version < 3.1 >
edited by Sergiu Dumitriu
on 2010/01/31
>
Change comment: Added xwiki:document:saved, typos

Summary

Details

Page properties
Author
... ... @@ -1,1 +1,1 @@
1 -XWiki.jvelociter
1 +XWiki.Sergiu
Content
... ... @@ -39,19 +39,25 @@
39 39  
40 40  <tt>xwiki:dom:loading</tt> is sent between <tt>dom:loaded</tt> and <tt>xwiki:dom:loaded</tt>, before XWiki changes the DOM. This is the event that should start all scripts making important DOM changes that other scripts should see.
41 41  
42 +1.1.1 Document content events
43 +
44 +* *<tt>xwiki:document:saved</tt>*
45 +
46 +This is event is sent after the document has been successfully saved in an asynchronous request (i.e. after clicking the ~~Save and Continue~~ button).
47 +
42 42  1.1.1 Action events
43 43  
44 44  * *<tt>xwiki:actions:cancel</tt>*
45 45  
46 -This event is saved after ther use clicks the "Cancel" button of an editor (Wiki, WYSIWYG, object, rights, etc.)
52 +This event is sent after the user clicks the "Cancel" button of an editor (Wiki, WYSIWYG, object, rights, etc.)
47 47  
48 48  * *<tt>xwiki:actions:preview</tt>*
49 49  
50 -This event is saved after ther use clicks the "Preview" button of an editor (Wiki, WYSIWYG, object, rights, etc.)
56 +This event is sent after the use clicks the "Preview" button of an editor (Wiki, WYSIWYG, object, rights, etc.)
51 51  
52 52  * *<tt>xwiki:actions:save</tt>*
53 53  
54 -This event is saved after the user clicks the "Save" or "Save & Continue" button of an editor (Wiki, WYSIWYG, object, rights, etc.). A memo is available if you need to know if the intend is to continue after the save. You can use it as follow:
60 +This event is sent after the user clicks the "Save" or "Save & Continue" button of an editor (Wiki, WYSIWYG, object, rights, etc.). A memo is available if you need to know if the intend is to continue after the save. You can use it as follow:
55 55  
56 56  {code}
57 57  document.observe("xwiki:dom:loaded", function(event){

Get Connected