List Info

Thread: Update of "GenericEditorAPI" by JörnNettingsmeier




Update of "GenericEditorAPI" by JörnNettingsmeier
country flaguser name
United States
2007-07-23 12:57:18
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

------------------------------------------------------------
------------------
  
  === Contract between generic editor usecases
(editors.insertImage, editors.insertLink) and
editor-specific modules ===
  
+ Requirements:
+ 
+ * the implementation must be completely editor-agnostic
+ * some editors have very good link/image editing
facilities (to set title, class, target, size etc.), others
are very rustic. the generic usecases should be able to
provide all those features, but they must be switchable in
case an editor wants to use its own facilities.
+ * the API must be really slick 
+ 
+ Idea: provide the new usecase window with a
linkData/imageData object containing default settings (see
below), and only display form fields for those attributes
that are (!undefined) in linkData/imageData.
+ 
+  
  Each editor module can access and use the generic
insertImage and insertLink implementations in the editors
module. The most common way to do that is to use a
javascript window.open call to create a separate window for
the usecase:
  {{{
    <img src="linkbutton.gif"
onclick="window.open('?lenya.usecase=editors.insertLink
&lenya.editorModule=$YOUREDITOR')" /><br
/>

------------------------------------------------------------
---------
To unsubscribe, e-mail: dev-unsubscribelenya.apache.org
For additional commands, e-mail: dev-helplenya.apache.org


[1]

about | contact  Other archives ( Real Estate discussion Medical topics )