php-fckeditor-ckeditor-案例1
来源:互联网 发布:飞天侠淘宝客9.1破解 编辑:程序博客网 时间:2024/06/05 07:45
<?php
/*
* Created on 2011-2-18
* 测试编辑器
* 1,加入ckeditor开源库目录(FCKEditor更名为CKEditor)
* 2,在测试文件中导入ckeditor.php文件
* 3,创建对象测试
*/
//导入CKEditor库中的文件
include_once("ckeditor/ckeditor.php");
//创建在线编辑器的对象
$ck = new CKEditor();//
//设置编辑器的目录路径
$ck->basePath="ckeditor/";
//在当前页面得到提交表单内容的值
if($_POST[sub]){//如果提交了表单
echo $_POST[title]."<br>";
$edit= $_POST[editor2];
echo $edit;
}
?>
<html>
<head>
<meta http-equiv="Content-Language" content="en" />
<meta name="GENERATOR" content="PHPEclipse 1.0" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>title</title>
</head>
<body bgcolor="#FFFFFF" text="#000000" link="#FF9966" vlink="#FF9966" alink="#FFCC99">
<!-- 创建表单,在表单中加入编辑器 请求给自己,action为空 -->
<form action="" method="post" >
标题内容:
<input type="text" name="title" value="" /><br>
<?php
// Configuration that will only be used by the second editor.
$config['toolbar'] = array(
array( 'Source', '-', 'Bold', 'Italic', 'Underline', 'Strike' ),
array( 'Image', 'Link', 'Unlink', 'Anchor' )
);
$config['skin'] = 'v2';//设置皮肤
$initialValue="初始值";
$ck->editor("editor2", $initialValue, $config);
?>
<input type="submit" name="sub" value="添加新闻"/>
</form>
</body>
</html>
提示:ckeditor库文件自己从网上下载。
- php-fckeditor-ckeditor-案例1
- Drupal FCKEditor/CKEditor PHP Execution
- PHP调用FCKEditor和CKEditor
- FCKeditor改名为CKeditor
- FCKeditor(CKeditor)使用方法
- jsp+FCKEditor+CKEditor
- CKEditor/FCKEditor 使用-CKeditor 3.0.1 快速教程(含插入图片)
- CKEditor/FCKEditor 使用-CKeditor 3.0.1 快速教程(含插入图片)
- CKEditor/FCKEditor 使用-CKeditor 3.0.1 快速教程(含插入图片)
- FckEditor(CKEditor)配置详细教程
- PHP 中配置 ckeditor(fckeditor的新版本)+ckfinder ,实现上传图片功能。
- 使用jQuery和PHP将Fckeditor(ckeditor)发布的内容进行无刷新分页
- 使用jQuery和PHP将Fckeditor(ckeditor)发布的内容进行无刷新分页
- CKEditor v3.0 - FCKeditor的重写版本
- FCKeditor更名为CKeditor,3.0版本尝鲜
- MVC FCKEditor和CKEditor的使用
- ckeditor用fckeditor的文件管理器…
- php配置 ckeditor+ekfinder
- sqlserver数据库的分页技术
- 一位软件工程师的6年总结
- C语言的学习很漫长
- delphi平台上的贪吃蛇游戏,有点问题,请帮忙看一下,谢谢
- 2011年5月26日
- php-fckeditor-ckeditor-案例1
- struts1-upload-上传案例1
- android-3g-java-入门案例1
- 这是我的第一篇日志
- 转:ThoughtWorks University 取经记
- android-3g-java-日期组件-案例2
- 唉
- Bootloader常用参数及在NAND FLASH里固化嵌入式系统
- 音频截取