|
jforum example source code file (FCK.jsp)
The jforum FCK.jsp source code
<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib uri="/WEB-INF/jspwiki.tld" prefix="wiki"%>
<%@ page import="com.ecyrd.jspwiki.*" %>
<%@ page import="com.ecyrd.jspwiki.ui.*" %>
<%@ page import="org.apache.commons.lang.*" %>
<%--
This provides the FCK editor for JSPWiki.
--%>
<% WikiContext context = WikiContext.findContext( pageContext );
String usertext = EditorManager.getEditedText(pageContext);
TemplateManager.addResourceRequest( context, "script", "scripts/fckeditor/fckeditor.js" );
%>
<wiki:CheckRequestContext context="edit"><%
if( usertext == null )
{
usertext = context.getEngine().getText( context, context.getPage() );
}%>
</wiki:CheckRequestContext>
<% if( usertext == null ) usertext = "";
String pageAsHtml = StringEscapeUtils.escapeJavaScript( context.getEngine().textToHTML( context, usertext ) );
%>
<form accept-charset=" |
<td>
<td>
<input type="checkbox" name="remember" id="rememberme" />
</tr>
<tr>
<td>
<td colspan="2">" />
</tr>
</table>
</wiki:CheckRequestContext>
<p>
<input name='ok' type='submit' value='Save' />
<input name='preview' type='submit' value='Preview' />
<input name='cancel' type='submit' value='Cancel' />
</p>
</div>
</form>
| ... this post is sponsored by my books ... | |
#1 New Release! |
FP Best Seller |
Copyright 1998-2024 Alvin Alexander, alvinalexander.com
All Rights Reserved.
A percentage of advertising revenue from
pages under the /java/jwarehouse
URI on this website is
paid back to open source projects.