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

The comment on the change is:
change function signature to object instead of param list

------------------------------------------------------------------------------
  
  each editor module '''must''' implement the following callbacks in javascript:
  
-  function insertImage(src, alt, title, width, height, scaleWidth, 
scaleHeight) {};
+  function insertImage(imageData) {};
+  where 
+    imageData = { 
+      'src': "/some/path/to/an/image.jpeg", 
+      'alt': "This is a proper alt description.",
+      'title': "The title of the image",
+      'width': "150", /* in pixels */
+      'height': "233" /* in pixels */
+    };
  
-  function insertLink(href, text, title, name, lang) {};
+  function insertLink(linkData) {};
+  where
+    linkData = {
+      'href': "/some/path/to/a/document.html",
+      'text': "Click here to see the wonders of the world!",
+      'title': "This is what pops up if you hover over the <a/>.",
+      'name': "someFragmentIdentifier",
+      'lang': "en"
+    };
  
  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 ===
  

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

Reply via email to