Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Lenya Wiki" for change 
notification.

The following page has been changed by JörnNettingsmeier:
http://wiki.apache.org/lenya/EditorRoadmap

------------------------------------------------------------------------------
   * Provide sitetree XML
  
  
- === contract between generic editor functions (insertImage, insertLink) and 
editor modules ===
+ === Contract between generic editor usecases (editors.insertImage, 
editors.insertLink) and editor-specific modules ===
  
- each editor module '''must''' implement the following callbacks in javascript:
+ Each editor module can access and use the generic insertImage and insertLink 
implementations in the editors module:
+ {{{
+ <!-- This is an editor button -->
+ <a 
href="?lenya.usecase=editors.insertImage&amp;lenya.editorModule=youreditor">Insert
 Image</a><br />
+ <a 
href="?lenya.usecase=editors.insertLink&amp;lenya.editorModule=youreditor">Insert
 Link</a><br />
+ }}}
+ The "lenya.editorModule" request parameter is necessary so that the correct 
javascript callback functions can be included by the generic usecase view:
+ {{{
+ <script type="text/javascript" 
src="/modules/{$editorModule}/javascript/editorCallbacks.js">&#160;</script>
+ }}}
+ 
+ each editor module that wishes to use the generic usecase implementations 
'''must''' provide the following callbacks in a file named 
{{{resources/javascript/editorCallbacks.js}}}:
  {{{
   function insertImage(imageData) {};
   where 
@@ -47, +58 @@

     };
  }}}
  
+ These functions need to take care of passing the data back to the editor.
- we should tackle this in the immediate future.
- the passing of objects instead of parameter lists allows for easy extension 
if necessary.
  
  
- === contract between validation on the server and editor modules ===
+ The passing of objects instead of parameter lists allows for easy extension 
if necessary.
  
- each editor should be able to handle validation errors from the server 
gracefully. it must receive the appropriate error messages from the server, 
display them to the user, and keep the file checked out!
  
+ === Contract between validation on the server and editor modules ===
+ 
+ Aach editor should be able to handle validation errors from the server 
gracefully. It must receive the appropriate error messages from the server, 
display them to the user, and keep the file checked out!
+ 
- this implies that the transmission of the document data and the receiving of 
result messages should happen via AJAX. 
+ This implies that the transmission of the document data and the receiving of 
result messages should happen via AJAX. 
  thus it's a task for well after 2.0 is out.
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to