This is version . It is not the current version, and thus it cannot be edited.
[Back to current version]   [Restore this version]
Date20-Sep-2005 11:57:33 EEST
JSPWiki version2.2.33
Idea CategoryProviderIdea
Idea StatusNewIdea

Editor Providers would enables editor developers to embedd their editors into JSPWiki with a simple Interface.

It uses a Factory class named EditorManager which would instanciate an EditorProvider of a certain type, indicated in the file by the jspwiki.editor property. For Example


An editor provider implements the EditorProvider interface which has the following three methods:

  • createIncludes() - Incldes needed by the editors (JavaScript includes)
  • createEditorArea() - The area where to type in the text
  • createButtons() - The submit buttons

Here's an example code snipped which would be used in the doEndTag() method of the EditorAreaTag to create a generic editor area

    EditorManager em = new EditorManager(pageContext, getBodyContent() );
    EditorProvider provider = em.createProvider();
    pageContext.getOut().print( provider.createEditor().toString() );

In order to implement the EditorProvider interface two new tags are needed:

The EditorAreaTag and EditorTag will have to be modified to use the new EditorProvider Interface.

Add new attachment

Only authorized users are allowed to upload new attachments.

List of attachments

Kind Attachment Name Size Version Date Modified Author Change note
editorproviders.png 13.0 kB 1 20-Sep-2005 11:59 ChristophSauer
« This particular version was published on 20-Sep-2005 11:57 by ChristophSauer.