FCKeditor 的简单配置
来源:互联网 发布:no module named yum 编辑:程序博客网 时间:2024/05/09 19:38
1 到官网http://ckeditor.com/download
下载FCKeditor包
2 解压文件,将fckeditor文件夹考到项目相应位置
3 打开该文件夹,找到fckeditor.js文件
根据工程的文件目录配置,修改其中的FCKeditor.BasePath属性值
根据当前的目录修改:
/**
* This is the default BasePath used by all editor instances.
*/
FCKeditor.BasePath = 'web/fckeditor/' ;
4 在页面中引用:
<tr>
<td valign="top">内容:</td>
<td>
<textarea name="content" id="myregist" style="width:100%; height:400px;overflow-x:hidden;">
</textarea>
<script type="text/javascript">
var oFCKeditor = new FCKeditor( 'myregist' ) ;
oFCKeditor.ToolbarSet = 'Default' ;
oFCKeditor.Width = '500' ;
oFCKeditor.Height = '300' ;
oFCKeditor.Value = '' ;
oFCKeditor.ReplaceTextarea();
</script>
</td>
</tr>
<td valign="top">内容:</td>
<td>
<textarea name="content" id="myregist" style="width:100%; height:400px;overflow-x:hidden;">
</textarea>
<script type="text/javascript">
var oFCKeditor = new FCKeditor( 'myregist' ) ;
oFCKeditor.ToolbarSet = 'Default' ;
oFCKeditor.Width = '500' ;
oFCKeditor.Height = '300' ;
oFCKeditor.Value = '' ;
oFCKeditor.ReplaceTextarea();
</script>
</td>
</tr>
5 对此页面textarea的name属性进行相应的操作即可
- FCKeditor 的简单配置
- FCKeditor的PHP配置,超级无敌简单
- FCKeditor的PHP配置,超级无敌简单
- FCKeditor的PHP配置,超级无敌简单
- fckeditor的简单使用
- FCKEDITOR的配置
- FCKeditor 的配置
- FCKeditor的详细配置
- FCKeditor的PHP配置
- FCKeditor的简易配置
- FCKeditor的配置实例
- 一个简单的FCKEditor步骤
- FCKeditor 的配置和使用方法
- FCKeditor的配置和使用方法
- FCKeditor的安装和配置。
- FCKeditor的基本配置修改
- 有关 FCKEditor 的配置(原创)
- 我的FCKeditor安全配置
- 2009年下半年信息系统项目管理师下午I案例分析答案之三
- informix安装配置
- 选择文件路径--浏览控件
- spring security 配置
- 蒲城。
- FCKeditor 的简单配置
- HelloWorld ——显示以大连星海广场为中心的600*600的地图网页【GMap学习笔记】
- PHP.ini配置文件中文
- Hibernate中list()与iterator()的区别
- discuz7.2问题SQL:SELECT * FROM [Table]notelist WHERE closed='0' AND app1'-5' LIMIT 1
- 在vs2008 vc++ 中添加mfc中消息处理函数
- su - username 和 su username
- ubuntu 10.04 下安装oracle 11g
- 在地图的边界内,随机放置一个标记【GMap 学习笔记】