Hi,
I'm trying to add a FCKeditor to a textarea for a java application. I've changed the code of the jsp page this way:
But I get nothing like a FCKeditor in my textAtrea. Somebody sees what am I doing wrong?
Thanks.
I'm trying to add a FCKeditor to a textarea for a java application. I've changed the code of the jsp page this way:
<webuijsf:head id="head1"> <webuijsf:script type="text/javascript" url="/resources/FCKeditor/fckeditor.js"/> <webuijsf:script type="text/javascript"> window.onload = function() { var oFCKeditor = new FCKeditor('textArea') ; oFCKeditor.ReplaceTextarea() ; } </webuijsf:script> <webuijsf:link id="link1" url="/resources/stylesheet.css"/> </webuijsf:head> <webuijsf:body id="body1" style="-rave-layout: grid"> <webuijsf:form id="form1"> <webuijsf:textArea binding="#{Page1.textArea}" columns="103" id="textArea" rows="25" style="height: 336px; left: 24px; top: 24px; position: absolute; width: 624px"/> <webuijsf:button actionExpression="#{Page1.button1_action}" id="button1" style="height: 48px; left: 287px; top: 408px; position: absolute; width: 119px" text="Salvar"/> </webuijsf:form> </webuijsf:body>
But I get nothing like a FCKeditor in my textAtrea. Somebody sees what am I doing wrong?
Thanks.
Re: help with jsp
U can simply use jstl tag whic fck provides.
<%@ taglib uri="http://java.fckeditor.net" prefix="FCK" %>
<FCK:editor instanceName="editor" height="95%" width="100%" toolbarSet="Default">
<jsp:attribute name="value">
</jsp:attribute>
</FCK:editor>
Re: help with jsp
Ok, I added the taglib at the top of the jsp. I got an "Invalid standard action" in the jsp:root element. So I searched for a solution and modified it:
But I keep getting the "Invalid standard action". What am I doing wrong?
Thanks.