Class FCKEditor
java.lang.Object
org.exoplatform.webui.form.wysiwyg.FCKEditor
FCKeditor control class.
It creates the html code for the FCKeditor based on the following things:
It creates the html code for the FCKeditor based on the following things:
- browser's capabilities
- different properties settings managed by the
PropertiesLoader - settings from the 'caller', eg. jsp-pages
- Version:
- $Id: FCKeditor.java 1682 2008-03-05 17:27:06Z th-schwarz $
-
Constructor Summary
ConstructorsConstructorDescriptionJust a wrapper toFCKEditor.FCKEditor(jakarta.servlet.http.HttpServletRequest request, String instanceName, String width, String height, String toolbarSet, String value, String basePath) Main constructor.
All important settings are done here and will be preset by there defaults taken fromPropertiesLoader. -
Method Summary
Modifier and TypeMethodDescriptionbooleancreate()Minimum implementation, see ticket #27 for detailed information.Generate the HTML Code for the editor.Get the advanced configuation set.
Adding element to this collection you can override the settings specified in the config.js file.voidsetBasePath(String value) Set the dir where the FCKeditor files reside on the server.
Remarks:
Avoid using relative paths.voidsetConfig(FCKEditorConfig value) Set the advanced configuation set.voidSet the height of the textareavoidsetInstanceName(String value) Set the unique name of the editorvoidsetToolbarSet(String value) Set the name of the toolbar to displayvoidSet the initial value to be edited.
In HTML codevoidSet the width of the textareatoString()
-
Constructor Details
-
FCKEditor
public FCKEditor(jakarta.servlet.http.HttpServletRequest request, String instanceName, String width, String height, String toolbarSet, String value, String basePath) Main constructor.
All important settings are done here and will be preset by there defaults taken fromPropertiesLoader.- Parameters:
request- request objectinstanceName- unique namewidth- widthheight- heighttoolbarSet- toolbarSet name
-
FCKEditor
Just a wrapper toFCKEditor.- Parameters:
request- request objectinstanceName- unique name
-
-
Method Details
-
setInstanceName
Set the unique name of the editor- Parameters:
value- name
-
setValue
Set the initial value to be edited.
In HTML code- Parameters:
value- value
-
setBasePath
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
-
setToolbarSet
Set the name of the toolbar to display- Parameters:
value- toolbar name
-
setWidth
Set the width of the textarea- Parameters:
value- width
-
setHeight
Set the height of the textarea- Parameters:
value- height
-
getConfig
Get the advanced configuation set.
Adding element to this collection you can override the settings specified in the config.js file.- Returns:
- configuration collection
-
setConfig
Set the advanced configuation set.- Parameters:
value- configuration collection
-
create
Minimum implementation, see ticket #27 for detailed information. -
toString
-
createHtml
Generate the HTML Code for the editor.
Evalute the browser capabilities and generate the editor if compatible, or a simple textarea otherwise.- Returns:
- html code
-
check
-