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

------------------------------------------------------------------------------
    var selectedText = 
org.apache.lenya.editors.getSelectedText(document.forms[0].elements['content']);
    switch (usecase) {
  
-     case "insertLink":
+     case org.apache.lenya.editors.USECASE_INSERTLINK:
        objectData[windowName] = new org.apache.lenya.editors.ObjectData({
          url   : "", /* Note we're setting the empty string as default, rather 
than omitting the field.  
                         Undefined fields will cause the usecase to disable the 
form field (which is useful
@@ -84, +84 @@

        });
        break;
  
-     case "insertImage":
+     case org.apache.lenya.editors.USECASE_INSERTIMAGE:
        // ...
-     case "insertAsset":
+     case org.apache.lenya.editors.USECASE_INSERTASSET:
        // ...
    }
    // a utility function you should use:
@@ -186, +186 @@

          <map:serialize type="xhtml"/>
        </map:match>
   
-     </map:pipeline>
+     </map:pipeline>}}}
- 
- }}}
  
  FIXME: This sitemap duplicates the "style-cms-page" resource. It would be 
great if such resources could be provided just once by a global sitemap and 
then included, but resources of other sitemaps are not accessible. If anyone 
has an idea how to factor this out, let me know.
  

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

Reply via email to