標籤:http io 使用 java ar 檔案 sp cti on
將FCKeditor目錄拷貝到工程中。 調用fckeditor(1)使用JavaScript來調用。有兩種方式。 第一種:直接調用方式。步驟1:引入JS檔案。<script type="text/javascript" src="fckeditor/fckeditor.js"></script> 步驟2:<script type="text/javascript"> var oFCKeditor = new FCKeditor( ‘FCKeditor1‘ ) ; oFCKeditor.BasePath = "fckeditor/" ; oFCKeditor.Create() ;</script> 第二種:通過替換多行文字框。步驟1:引入JS檔案。<script type="text/javascript" src="fckeditor/fckeditor.js"></script> 步驟2:建立多行文字框<textarea rows="10" cols="40" name="content"></textarea> 步驟3:<script type="text/javascript"> window.onload = function() { var oFCKeditor = new FCKeditor(‘content‘) ; oFCKeditor.BasePath = "fckeditor/" ; oFCKeditor.ReplaceTextarea() ; }</script> (2)通過JSP自訂標籤來調用。步驟1:匯入jar包。步驟2:匯入標籤庫。<%@taglib uri="http://java.fckeditor.net" prefix="FCK" %> 步驟3:<FCK:editor instanceName="myFckeditor" basePath="/user/fckeditor" value=" "></FCK:editor>
jsp調用fckeditor