fckeditor初始化赋值方法

来源:互联网 发布:速发淘客软件 编辑:程序博客网 时间:2024/04/29 23:02
1、添加代码,引入相关配置的js: 
<script type="text/javascript" src="fckeditor/fckeditor.js"></script>
2、在html 的<head>标签里添加onload方法如下:
<script type="text/javascript">window.onload = function(){var oFCKeditor = new FCKeditor( 'MyTextarea' ) ;oFCKeditor.BasePath = "/fckeditor/" ;oFCKeditor.ReplaceTextarea() ;}</script>
3、在<body>的相应位置添加TEXTAREA
<textarea id="Mytextarea" name="Mytextarea">这里是初值.</textarea>
 (详见官网:www.fckeditor.net)
原创粉丝点击