| java.lang.Object com.fredck.FCKeditor.FCKeditor
FCKeditor | public class FCKeditor (Code) | | The main class of the class lib.
It's the container for all properties and the class that generate the output based on browser capabilities and configurations passed by the developer.
author: Simone Chiaretta (simo@users.sourceforge.net) |
FCKeditor | public FCKeditor(HttpServletRequest req)(Code) | | Initialize the object setting all value to the default ones.
- width: 100%
- height: 200
- toolbar name: Default
- basePath: context root + "/FCKeditor/"
Parameters: req - request object |
FCKeditor | public FCKeditor(HttpServletRequest req, String parInstanceName)(Code) | | Initialize the object setting the unique name and then all value to the default ones.
- width: 100%
- height: 200
- toolbar name: Default
- basePath: context root + "/FCKeditor/"
Parameters: req - request object Parameters: parInstanceName - unique name |
FCKeditor | public FCKeditor(HttpServletRequest req, String parInstanceName, String parWidth, String parHeight, String parToolbarSet, String parValue)(Code) | | Initialize the object setting all basic configurations.
The basePath is context root + "/FCKeditor/"
Parameters: req - request object Parameters: parInstanceName - unique name Parameters: parWidth - width Parameters: parHeight - height Parameters: parToolbarSet - toolbarSet name Parameters: parValue - initial value |
create | public String create()(Code) | | Generate the HTML Code for the editor.
Evalute the browser capabilities and generate the editor if IE 5.5 or Gecko 20030210 or greater,
or a simple textarea otherwise.
html code |
getBasePath | public String getBasePath()(Code) | | Get the dir where the FCKeditor files reside on the server
path |
getConfig | public FCKeditorConfigurations getConfig()(Code) | | Get the advanced configuation set.
Adding element to this collection you can override the settings specified in the config.js file.
configuration collection |
getHeight | public String getHeight()(Code) | | Get the height of the textarea
height |
getInstanceName | public String getInstanceName()(Code) | | Get the unique name of the editor
name |
getToolbarSet | public String getToolbarSet()(Code) | | Get the name of the toolbar to display
toolbar name |
getValue | public String getValue()(Code) | | Get the initial value to be edited.
In HTML code
value |
getWidth | public String getWidth()(Code) | | Get the width of the textarea
width |
setBasePath | public void setBasePath(String value)(Code) | | Set the dir where the FCKeditor files reside on the server.
Remarks:
Avoid using relative paths. It is preferable to set the base path starting from the root (/).
Always finish the path with a slash (/).
Parameters: value - path |
setConfig | public void setConfig(FCKeditorConfigurations value)(Code) | | Set the advanced configuation set.
Parameters: value - configuration collection |
setHeight | public void setHeight(String value)(Code) | | Set the height of the textarea
Parameters: value - height |
setInstanceName | public void setInstanceName(String value)(Code) | | Set the unique name of the editor
Parameters: value - name |
setToolbarSet | public void setToolbarSet(String value)(Code) | | Set the name of the toolbar to display
Parameters: value - toolbar name |
setValue | public void setValue(String value)(Code) | | Set the initial value to be edited.
In HTML code
Parameters: value - value |
setWidth | public void setWidth(String value)(Code) | | Set the width of the textarea
Parameters: value - width |
|
|