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/GenericEditorAPI

------------------------------------------------------------------------------
    <img src="linkbutton.gif" 
onclick="window.open('?lenya.usecase=editors.insertLink)" /><br />
    <img src="imagebutton.gif" 
onclick="window.open('?lenya.usecase=editors.insertImage)" /><br />
  }}}
+ 
+ The following objects (defined in 
{{{src/modules/editors/resources/javascript/org.apache.lenya.Editors.js}}}) are 
used for data exchange between the editor and the generic usecases:
+ {{{
+ 
+ var org.apache.lenya.Editors; // keep the global namespace clean!
+ org.apache.lenya.Editors.prototype.LinkData = function() {
+   this.href = "";
+   this.title = "";
+   this.text = "";
+ }  
+ org.apache.lenya.Editors.prototype.ImageData = function() {
+   this.src = "";
+   this.title = "";
+   this.height = "";
+   this.width = "";
+   this.mimeType = "";
+ }
+ org.apache.lenya.Editors.prototype.AssetData = function() {
+   this.src = "";
+   this.title = "";
+   this.mimeType = "";
+ }
+ }}}
+ 
  
  Each editor module that wishes to use the generic usecase implementations 
'''must''' provide the following callbacks in the context of the opening window:
  

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

Reply via email to