<
>
edited by Ecaterina Moraru (Valica)
on 2010/11/04
on 2010/11/04
edited by Ecaterina Moraru (Valica)
on 2010/11/04
on 2010/11/04
Change comment:
Added the link to the full list of WYSIWYG events
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -22,9 +22,9 @@ 22 22 23 23 Check out the real examples below, or [read more>http://prototypejs.org/api/element/fire] about Prototype.js's event system 24 24 25 -1.1.1 DOM Events 25 +1.1.1 DOM Events (xwiki.js) 26 26 27 -* *<tt>xwiki:dom:loading</tt>* 27 +* *<tt>xwiki:dom:loading</tt>* 28 28 * *<tt>xwiki:dom:loaded</tt>* 29 29 30 30 These events are similar to [prototype's dom:loaded event>http://www.prototypejs.org/api/document/observe], with the difference that in the time-lapse between <tt>dom:loaded</tt> and <tt>xwiki:dom:loaded</tt>, XWiki may have transformed the DOM. Example of DOM transformations operated by XWiki is setting the right target of links that have rel="external" attribute so that the document can be XHTML valid and still have the desired effect. In the future there might be more transformations operated by XWiki upon DOM initialization. This event is meant for code to be notified of loading of the XWiki-transformed version of the initial DOM. As <tt>dom:loaded</tt>, it can be used as follow: ... ... @@ -39,19 +39,21 @@ 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 42 +1.1.1 Document content events (actionButtons.js) 43 43 44 -* *<tt>xwiki:document:saved</tt>* 44 +* *<tt>xwiki:document:saved</tt>* 45 45 46 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 47 48 - 1.1.1Actionevents48 +* *<tt>xwiki:document:saveFailed</tt>* 49 49 50 - **<tt>xwiki:actions:cancel</tt>*50 +1.1.1 Action events (actionButtons.js) 51 51 52 +* *<tt>xwiki:actions:cancel</tt>* 53 + 52 52 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. 53 53 54 -* *<tt>xwiki:actions:preview</tt>* 56 +* *<tt>xwiki:actions:preview</tt>* 55 55 56 56 This event is sent after ther use clicks the "Preview" button of an editor (Wiki, WYSIWYG, object, rights, etc.), but before actually leaving the edit mode. 57 57 ... ... @@ -70,9 +70,9 @@ 70 70 71 71 All these events contain as extra information, in the second parameter sent to event listeners (the memo), the original click event (if any, and which can be stopped to prevent the action from completing), and the form being submitted. 72 72 73 -1.1.1 Document extra events 75 +1.1.1 Document extra events (xwiki.js) 74 74 75 -* *<tt>xwiki:docextra:loaded</tt>* 77 +* *<tt>xwiki:docextra:loaded</tt>* 76 76 77 77 This event is fired upon reception of the content of a document footer tab by AJAX. This event is useful if you need to operate transformations of the received content. You can filter on which tab content to operate (comments or attachment or information or ...) using the event memo. The DOM element in which the retrieved content has been injected is also passed to facilitate transformations. 78 78 ... ... @@ -90,23 +90,27 @@ 90 90 91 91 This event is fired upon activation of a tab. It differs from the loaded event since tabs are loaded only once if the user clicks going back and forth between tabs. This event will notify of each tab activation, just after the tab content is actually made visible. The tab ID is passed in the memo as for <tt>xwiki:docextra:loaded</tt> 92 92 93 -1.1.1 Fullscreenevents95 +1.1.1 WYSIWYG events (XWikiWysiwyg.js) 94 94 95 -* *<tt>xwiki:fullscreen:entered</tt>* (since 2.5.1) 96 -* *<tt>xwiki:fullscreen:exited</tt>* (since 2.5.1) 97 -* *<tt>xwiki:fullscreen:resized</tt>* (since 2.5.1) 97 +WYSIWYG has it's own custom [events list>http://code.xwiki.org/xwiki/bin/view/Modules/WysiwygEditorModule#HCustomevents]. 98 98 99 -1.1.1 Livetable events99 +1.1.1 Fullscreen events (fullScreenEdit.js) (since 2.5.1) 100 100 101 -* *<tt>xwiki:livetable:newrow</tt>* 101 +* *<tt>xwiki:fullscreen:entered</tt>* 102 +* *<tt>xwiki:fullscreen:exited</tt>* 103 +* *<tt>xwiki:fullscreen:resized</tt>* 102 102 103 - **<tt>xwiki:livetable:loadingEntries</tt>*(since 2.3 RC1)105 +1.1.1 Annotations events (AnnotationCode/Script jsx) 104 104 105 -* *<tt>xwiki:livetable:receivedEntries</tt>* (since 2.3 RC1) 107 +* *<tt>xwiki:annotations:filter:changed</tt>* 108 +* *<tt>xwiki:annotations:settings:loaded</tt>* 106 106 107 - **<tt>xwiki:livetable:loadingComplete</tt>*(since2.4 M1)110 +1.1.1 Livetable events (livetable.js) 108 108 112 +* *<tt>xwiki:livetable:newrow</tt>* 113 +* *<tt>xwiki:livetable:loadingEntries</tt>* (since 2.3 RC1) 114 +* *<tt>xwiki:livetable:receivedEntries</tt>* (since 2.3 RC1) 115 +* *<tt>xwiki:livetable:loadingComplete</tt>* (since 2.4 M1) 109 109 * *<tt>xwiki:livetable:displayComplete</tt>* (since 2.4 M1) 110 - 111 111 * *<tt>xwiki:livetable:ready</tt>* (since 2.4.4) 112 112