FCKEdiror 共用一個工具條

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>

 

 看着還不錯 赫赫

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章