on 02-03-2006 9:10 AM
Currently we are using a textarea for the content for the text of a chapter in an application. Of course end-users would like to have a rich text editor since the result is stored as PDF file, so since we use MVC and BSPs our first thought was to use the BTF editor but it seems that this editor is not planned to be replaced with an equivalent in WebDynpro.
So we have found a nice editor called FCKEditor (see http://www.fckeditor.net/) done in JavaScript but with java integration possibilities, it is under LGPL open source license.
So my question is, would it be compatible with WebDynpro ?
Cyrille,
WD has no hooks for HTML rendering and does not allow adding custom JavaScript, so it is impossible to use Rich Text Editors a-la FCKEditor.
Valery Silaev
EPAM Systems
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
but they say that you can integrate it with java:
Installing FCKeditor in a JSP environment is quite easy:
Unzip the Java Integration Library in a directory named "FCKeditor".
Unzip the content of the FCKeditor release of your choice inside the "FCKeditor\web" folder.
Then you have to create in tomcat (or any servlet container) a new context named "FCKeditor" that points to the previously created "FCKeditor\web" folder.
Point your browser to http://domainName.ext/FCKeditor/_samples/index.jsp for the list of the samples.
Usage
Take a look at the test files and in the javadoc API provided in the distribution. Here is a simple example.
First put this taglib definition at the top of the JSP page:
<%@ taglib uri="http://fckeditor.net/tags-fckeditor" prefix="FCK" %>
Then the tag:
<FCK:editor
id="EditorAccessibility" //Unique name of the editor
width="80%" //Width
height="120" //Height
toolbarSet="Accessibility" //Toolbar name
>This is another test. <BR><B>The "Second" row.</B></FCK:editor>
A more advance example, that show how to use the inner tags to overrides any of the settings specified in the config.js file:
<FCK:editor id="EditorDefault" basePath="/FCKeditor/"
styleNames=";Style 1;Style 2; Style 3"
fontNames=";Arial;Courier New;Times New Roman;Verdana" >
This is some <B>sample text</B>.
</FCK:editor>
Building
Inside the files there is the source files for the tags (/src) and the ant build file (build.xml).
The ant build file provides the following tasks:
all: Clean build and dist directories, then compile
clean: Delete old build and dist directories
compile: Compile Java sources
dist: Create binary distribution
javadoc: Create Javadoc API documentation
release: Create Release Distribution
Plus some Tomcat managing tasks (to make this tasks work you need to copy inside the "web" folder the FCKeditor package):
install: Create a web application pointing to the build directory
reload: Recompile and reload the web application
remove: remove the web application
To start building the class you first need to modify the "catalina.home" property inside the build.xml, then type "ant dist" to compile, create the javadoc API description and generate the jar library to be copied in the WEB-INF.
Or more easily, type "ant install" after setting the right username and password for the tomcat manager application.
Cyrille,
Sadly, no.
Probably someone will suggest you to use IFrame + applet (or FCKEditor scripts) but in reality this is dead path -- you'll be unable to exchange value of WD rendered controls and your rich editor.
Rich text editor is one of most requested features for WebDynpro. Probably SAP will add it sooner or later. Most probably, as Java applet within ActiveComponents set. Hopefully, with less bugs then other ActiveComponents
Valery Silaev
EPAM Systems
User | Count |
---|---|
84 | |
25 | |
12 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.