<
From version < 35.1 >
edited by Guillaume Delhumeau
on 2015/08/27
To version < 36.1 >
edited by Marius Dumitru Florea
on 2016/01/28
>
Change comment: There is no comment for this version

Summary

Details

Page properties
Author
... ... @@ -1,1 +1,1 @@
1 -XWiki.gdelhumeau
1 +XWiki.mflorea
Content
... ... @@ -76,10 +76,14 @@
76 76  
77 77  * **##xwiki:actions:cancel##**
78 78  This event is sent after the user clicks the "Cancel" button of an editor (Wiki, WYSIWYG, object, rights, etc.), but before actually cancelling the edit.
79 -* **##xwiki:actions:preview##**
80 -This event is sent after the user clicks the "Preview" button of an editor (Wiki, WYSIWYG, object, rights, etc.), but before actually leaving the edit mode.
79 +* **##xwiki:actions:beforePreview##** (7.4.1+, 8.0M1+)
80 +This event is sent after the user clicks the "Preview" button from an edit mode, but before the edit form is validated. You can use this event to update the form fields before they are submitted to the preview action.
81 +* **##xwiki:actions:preview##**
82 +This event is sent after the edit form has been validated, as a result of the user clicking the "Preview" button from an edit mode, but before the form is submitted. The event is fired only if the edit form is valid.
83 +* **##xwiki:actions:beforeSace##** (7.4.1+, 8.0M1+)
84 +This event is sent after the user clicks the "Save" or "Save & Continue" button from an edit mode, but before the edit form is validated. You can use this event to update the form fields before they are submitted to the save action.
81 81  * **##xwiki:actions:save##**
82 -This event is sent after the user clicks the "Save" or "Save & Continue" button of an editor (Wiki, WYSIWYG, object, rights, etc.), but before actually submitting the form. A memo is available if you need to know if the intend is to continue after the save, in ##event.memo['continue']##. You can use it as follows:(((
86 +This event is sent after the edit form has been validated, as a result of the user clicking the "Save" or "Save & Continue" button from an edit mode, but before the form is submitted. The event is fired only if the edit form is valid. A memo is available if you need to know if the intend is to continue after the save, in ##event.memo['continue']##. You can use it as follows:(((
83 83  {{code language="javascript"}}
84 84  document.observe("xwiki:actions:save", function(event){
85 85   var doContinue = event.memo['continue'];

Get Connected