roller中集成FCK参考
http://blog.kongbo.org/cobola/entry/20070107
修改 editor-fkceditor.jsp
window.onload = function()
{
var oFCKeditor = new FCKeditor( 'summary' ) ;
oFCKeditor.BasePath = "<%=request.getContextPath()%>/roller-ui/authoring/editors/FCKeditor/" ;
oFCKeditor.ToolbarSet="Admin";
oFCKeditor.Config[ 'ToolbarLocation' ] = 'Out:parent(pp)'
oFCKeditor.Height="230px";
oFCKeditor.ReplaceTextarea() ;
var oFCKeditor = new FCKeditor( 'text' ) ;
oFCKeditor.BasePath = "<%=request.getContextPath()%>/roller-ui/authoring/editors/FCKeditor/" ;
oFCKeditor.ToolbarSet="Admin";
oFCKeditor.Config[ 'ToolbarLocation' ] = 'Out:parent(pp)'
oFCKeditor.Height="330px";
oFCKeditor.ReplaceTextarea() ;
}
function postWeblogEntry(publish) {
if (publish)
document.weblogEntryFormEx.publishEntry.value = "true";
document.weblogEntryFormEx.submit();
}
function changeSize(e, num) {
e.rows = e.rows + num;
var expires = new Date();
expires.setTime(expires.getTime() + 24 * 90 * 60 * 60 * 1000); // sets it for approx 90 days.
setCookie("editorSize",e.rows,expires);
}
// -->
</script>
<%-- ===================================================================== --%>
<p class="toplabel"><fmt:message key="weblogEdit.summary" /></p>
<div id='pp'></div>
看着还不错 赫赫