Hi,
I am trying to create FCKEditor as shown in the code below, but it is not creating the textarea, can anyone help me?
Appreciate your help. I think iframe that is created by FCKEditor is not working in my browser (IE/Mozilla).
<head>
<link rel="stylesheet" href="<%=request.getContextPath()%>/stylesheets/Theme.css" type="text/css"/>
<title><tiles:getAsString name="title" />
</title>
<script type="text/javascript" src="/fckeditor/fckeditor.js"></script>
<script Language="Javascript" type="text/javascript">
window.onload = function()
{
var oFCKeditor = new FCKeditor( 'description' ) ;
oFCKeditor.BasePath = '/fckeditor/';
oFCKeditor.Config["CustomConfigurationsPath"] = "/js/fckeditor_custom_fckconfig.js" ;
oFCKeditor.ToolbarSet = 'announcement' ;
oFCKeditor.Height = 80;
oFCKeditor.Width = 600;
oFCKeditor.Value = 'Test';
oFCKeditor.ReplaceTextarea() ;
}
</script>
</head>
<body>
<form name="announcementForm" method="post" action="/saveAnnouncement.do?dispatchto=save" enctype="multipart/form-data">
<input type="hidden" name="swapstatus" value="ACTIVE" />
<input type="hidden" name="currentstatus" value="ACTIVE" />
<table width="65%" border="0" cellspacing="0" cellpadding="0">
<tr valign="middle">
<td nowrap>
<textarea name="description" cols="60" rows="8" class="FormText"></textarea>
</td>
</tr>
</table>
</form>
I am trying to create FCKEditor as shown in the code below, but it is not creating the textarea, can anyone help me?
Appreciate your help. I think iframe that is created by FCKEditor is not working in my browser (IE/Mozilla).
<head>
<link rel="stylesheet" href="<%=request.getContextPath()%>/stylesheets/Theme.css" type="text/css"/>
<title><tiles:getAsString name="title" />
</title>
<script type="text/javascript" src="/fckeditor/fckeditor.js"></script>
<script Language="Javascript" type="text/javascript">
window.onload = function()
{
var oFCKeditor = new FCKeditor( 'description' ) ;
oFCKeditor.BasePath = '/fckeditor/';
oFCKeditor.Config["CustomConfigurationsPath"] = "/js/fckeditor_custom_fckconfig.js" ;
oFCKeditor.ToolbarSet = 'announcement' ;
oFCKeditor.Height = 80;
oFCKeditor.Width = 600;
oFCKeditor.Value = 'Test';
oFCKeditor.ReplaceTextarea() ;
}
</script>
</head>
<body>
<form name="announcementForm" method="post" action="/saveAnnouncement.do?dispatchto=save" enctype="multipart/form-data">
<input type="hidden" name="swapstatus" value="ACTIVE" />
<input type="hidden" name="currentstatus" value="ACTIVE" />
<table width="65%" border="0" cellspacing="0" cellpadding="0">
<tr valign="middle">
<td nowrap>
<textarea name="description" cols="60" rows="8" class="FormText"></textarea>
</td>
</tr>
</table>
</form>
Re: Problem creating FCKEditor
<filter>
<filter-name>AuthorizationFilter</filter-name>
<filter-class>
filter.AuthorizationFilter
</filter-class>
<init-param>
<param-name>no-auth</param-name>
<param-value>
fckeditor
</param-value>
</init-param>
</filter>