php fckeditor配置
来源:互联网 发布:前程无忧有限公司 java 编辑:程序博客网 时间:2024/05/16 10:59
php果然简单好学,就连配置FCKEditor都如此轻松,本来是打算花一到两个小时配置完成它就不错了,没想到从下载最新版本到配置成功也就不到半小时.想起当年在java下配置FCKEditor时那个艰辛......
下面记录下配置方法,把下载下来的zip文件解压到php网站的根目录下,默认文件夹名是"fckeditor"
在需要加入编辑器的页面里面引用fckeditor/fckeditor.php,即
在需要加入编辑器的地方加入如下代码:
看看吧,不出意外的话配置成功。
如果你感觉FCKEditor提供的功能太多,有许多功能用不到的话,可以自己建立自定义的ToolbarSet具体方法就是打开fckediotr目录下的fckconfig.js,加入如下代码:
下面记录下配置方法,把下载下来的zip文件解压到php网站的根目录下,默认文件夹名是"fckeditor"
在需要加入编辑器的页面里面引用fckeditor/fckeditor.php,即
<?php include("fckeditor/fckeditor.php");?>
在需要加入编辑器的地方加入如下代码:
$oFCKeditor = new FCKeditor('FCKeditor1') ;//建立对象
$oFCKeditor->BasePath = 'FCKeditor/' ;//FCKeditor所在的位置
$oFCKeditor->ToolbarSet = 'Default' ;//工具按钮
$oFCKeditor->Width = '50%';//宽
$oFCKeditor->Height ='500';//高
$oFCKeditor->Value ='Hello';//默认显示的文字
$oFCKeditor->Create() ;
其中FCKeditor1对应textarea中的name属性$oFCKeditor->BasePath = 'FCKeditor/' ;//FCKeditor所在的位置
$oFCKeditor->ToolbarSet = 'Default' ;//工具按钮
$oFCKeditor->Width = '50%';//宽
$oFCKeditor->Height ='500';//高
$oFCKeditor->Value ='Hello';//默认显示的文字
$oFCKeditor->Create() ;
看看吧,不出意外的话配置成功。
如果你感觉FCKEditor提供的功能太多,有许多功能用不到的话,可以自己建立自定义的ToolbarSet具体方法就是打开fckediotr目录下的fckconfig.js,加入如下代码:
//在名为"Default"的toolbarset里面包含了所有fck的功能,英语好的自己看看吧
FCKConfig.ToolbarSets["自定义toolbarset名称"]=[ [需要显示的功能]]
FCKConfig.ToolbarSets["自定义toolbarset名称"]=[ [需要显示的功能]]
- FCKeditor---------php 中配置
- fckeditor php使用配置
- FCKeditor 2.4.配置(PHP)
- PHP配置FCKEditor
- php fckeditor配置
- FCKeditor的PHP配置
- PHP配置FCKEditor
- PHP使用FCKEditor的配置
- PHP程序中配置FCKEditor
- FCKEditor在PHP中的使用(FCKEditor入门)与配置
- FCKeditor 的配置和使用方法(for PHP)
- FCKeditor 的配置和使用方法(for PHP)
- FCKeditor的PHP配置,超级无敌简单
- FCKeditor的PHP配置,超级无敌简单
- fckeditor在Php中配置详解
- PHP环境下配置在线编辑器FCKeditor
- php下配置使用FCKeditor控件
- PHP实例:FCKeditor 的配置和使用方法
- In App Purchase
- 【原创文章】JAVA-POI实现EXCEL下拉框的级联(POI生成Excel中带有可级联的下拉框)
- jQuery EasyUI 记要
- Android开发之旅:HelloWorld项目的目录结构
- 苹果应用商店审核指南中文翻译
- php fckeditor配置
- Android 远程图片获取及本地缓存
- android四大组件的mvc模式
- javascript中两种定时器的区别
- JavaScript 脚本window.opener用法
- java.util.BitSet 研究(存数海量数据时的一个途径)
- Windows下编译X264多线程版本
- 协议栈相关实验之 SerialApp实验 详解
- rtrt