jsp呼び出しfckeditor
1190 ワード
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>