php下安装配置fckeditor编辑器的方法

2015-01-24信息快讯网

以下是我学习PHP时,总结一些安装配置fckeditor在线编辑器最实用的方法。其实调用fckeditor也只有两种调用方法。有什么大家可以在我博客上留言,我有时间会帮大家解答的。

一、PHP调用fckeditor方法。
二、JS调用fckeditor方法。
 
<?php 
require_once(PATH_PRE.”fckeditor.php”); // 包含fckeditor类, 
$oFCKeditor = new FCKeditor('content') ; //创建一个fckeditor对象,表单的名称为content 
$oFCKeditor->BasePath=”../fckeditor/”; //编辑器所在目录 
$oFCKeditor->ToolbarSet=”Yiyunnet”; // 默认编辑器工具栏有Basic(基本工具) Default(所有工具)Soft(分一栏可以插入图片视频 ) Renpeng (可以上传图片视频分为两栏 ) Full (三栏) 
$oFCKeditor->Height='100%'; //高度 
$oFCKeditor->Width='100%'; //宽度 
$oFCKeditor->Value=”"; //初始值 还可设置以下部分(”=”包含部分),并非必须: 
$oFCKeditor->Config['SkinPath'] = ‘../editor/skins/silver/'; // 设置编辑器皮肤共有三种皮肤default 
$oFCKeditor->Create(); //在要显示编缉器的地方输出变量$myeditor的值就行了 
?> 


FCKeditor js调用方法一
 
<script src=”fckeditor/fckeditor.js”></script> 
<script type=”text/javascript”> 
var oFCKeditor = new FCKeditor( ‘Content' ) ; 
oFCKeditor.BasePath = ‘fckeditor/' ; 
oFCKeditor.ToolbarSet = ‘Basic' ; 
oFCKeditor.Width = ‘100%' ; 
oFCKeditor.Height = ‘400′ ; 
oFCKeditor.Value = ” ; 
oFCKeditor.Create() ; 
</script> 

FCKeditor js调用方法二
 
<script src=”fckeditor/fckeditor.js”></script> 
<script type=”text/javascript”> 
function showFCK(){ 
var oFCKeditor = new FCKeditor('Content') ; 
oFCKeditor.BasePath = ‘fckeditor/' ; 
oFCKeditor.ToolbarSet = ‘Basic' ; 
oFCKeditor.Width = ‘100%' ; 
oFCKeditor.Height = ‘200′ ; 
oFCKeditor.Value = ” ; 
oFCKeditor.ReplaceTextarea() ; 
document.getElementByIdx(”btnShow”).disabled = ‘true'; 
document.getElementByIdx(”btnShow”).style.display = ‘none'; 
} 
</script> 
<textarea name=”Content”></textarea> 
<input id=btnShow style=”display:inline” type=button onclick=”showFCK()”> 
php数据结构与算法(PHP描述) 快速排序 quick sort
PHP Warning: PHP Startup: Unable to load dynamic library \ D:/php5/ext/php_mysqli.dll\
php中jQuery插件autocomplate的简单使用笔记
header中Content-Disposition的作用与使用方法
PHP Parse Error: syntax error, unexpected $end 错误的解决办法
php提示undefined index的几种解决方法
php提示Call-time pass-by-reference has been deprecated in的解决方法[已测]
redis 队列操作的例子(php)
PHP __autoload()方法真的影响性能吗?
Notice: Trying to get property of non-object problem(PHP)解决办法
PHP运行出现Notice : Use of undefined constant 的完美解决方案分享
一些需要禁用的PHP危险函数(disable_functions)
php中通过curl模拟登陆discuz论坛的实现代码
php _autoload自动加载类与机制分析
PHP异步调用socket实现代码
shopex主机报错误请求解决方案(No such file or directory)
php fsockopen中多线程问题的解决办法[翻译]
php空间不支持socket但支持curl时recaptcha的用法
php获取远程图片的两种 CURL方式和sockets方式获取远程图片
PHP单元测试利器 PHPUNIT初探第1/2页
PHP如何抛出异常处理错误
discuz的php防止sql注入函数
DEDE采集大师官方留后门的删除办法
Discuz Uchome ajaxpost小技巧
php下尝试使用GraphicsMagick的缩略图功能
php下获取Discuz论坛登录用户名、用户组、用户ID等信息的实现代码
PHP的autoload自动加载机制使用说明
php iconv() : Detected an illegal character in input string
Notice: Undefined index: page in E:\PHP\test.php on line 14
php运行出现Call to undefined function curl_init()的解决方法
晋城吧对DiscuzX进行的前端优化要点
php Notice: Undefined index 错误提示解决方法
使用VisualStudio开发php的图文设置方法
php checkbox 取值详细说明
php 提速工具eAccelerator 配置参数详解
php select,radio和checkbox默认选择的实现方法
php checkbox复选框值的获取与checkbox默认值输出方法
php源码加密 仿微盾PHP加密专家(PHPCodeLock)
在Windows下编译适用于PHP 5.2.12及5.2.13的eAccelerator.dll(附下载)
Fatal error: Call to undefined function curl_init()解决方法
©2014-2024 dbsqp.com