使用JavaScript调用FCKedit (一)
<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>Insert title here</title> <mce:script type="text/javascript" src="fckeditor/fckeditor.js" mce_src="fckeditor/fckeditor.js"></mce:script> </head> <body> <mce:script type="text/javascript"><!-- var oFCKeditor = new FCKeditor('FCKeditor1'); oFCKeditor.BasePath = "/fckeditor/fckeditor/"; oFCKeditor.Create(); // --></mce:script> </body> </html>
使用textarer标签调用FCKedit (二)
<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>Insert title here</title> <mce:script type="text/javascript" src="fckeditor/fckeditor.js" mce_src="fckeditor/fckeditor.js"></mce:script> <mce:script type="text/javascript"><!-- window.onload = function() { var oFCKeditor = new FCKeditor('arer'); oFCKeditor.BasePath = "fckeditor/"; oFCKeditor.ReplaceTextarea(); } // --></mce:script> </head> <body> <textarea rows="4" cols="60" name="arer" >
本文介绍了三种调用FCKeditor的方法:通过JavaScript直接初始化、使用textarea标签替换以及利用JSP标签进行配置。每种方法都提供了详细的实现步骤。
105

被折叠的 条评论
为什么被折叠?



