PHP在线编辑器fckeditor应用
2011-04-10 20:56
375 查看
网上下载:FCKeditor_2.6.5
add_news.php
--------------------
<?phpinclude_once 'fckeditor/fckeditor.php';$sBasePath = $_SERVER['PHP_SELF'];$sBasePath = dirname($sBasePath) . "/fckeditor/"; //fckeditor.php所在的根目录$ed = new FCKeditor('con') ;$ed->BasePath = $sBasePath ;$ed->Config['SkinPath'] = $sBasePath . '/editor/skins/office2003/'; //皮肤路径?>
<html><body>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<form action="" method="post"> <input type="text" name="title" value="" /> <?php $ed->Create(); ?> <br><input name="btn" type="submit" value="添加新闻"></form>
标题:<?php echo $_POST['title'] ?>
内容:<?php htmlspecialchars(stripslashes($_POST['con'])) ?>
</body></html>
add_news.php
--------------------
<?phpinclude_once 'fckeditor/fckeditor.php';$sBasePath = $_SERVER['PHP_SELF'];$sBasePath = dirname($sBasePath) . "/fckeditor/"; //fckeditor.php所在的根目录$ed = new FCKeditor('con') ;$ed->BasePath = $sBasePath ;$ed->Config['SkinPath'] = $sBasePath . '/editor/skins/office2003/'; //皮肤路径?>
<html><body>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<form action="" method="post"> <input type="text" name="title" value="" /> <?php $ed->Create(); ?> <br><input name="btn" type="submit" value="添加新闻"></form>
标题:<?php echo $_POST['title'] ?>
内容:<?php htmlspecialchars(stripslashes($_POST['con'])) ?>
</body></html>
相关文章推荐
- PHP在线编辑器fckeditor应用
- 我的php学习笔记(二十八)PHP在线编辑器fckeditor应用
- php【初级篇】之_5.php-在线HTML编辑器:kindeditor、FCKeditor
- PHP环境下配置在线编辑器FCKeditor
- PHP环境下配置在线编辑器FCKeditor
- PHP FCKeditor 在线编辑器的配置和使用实例
- 速动画教程第二十集 在线编辑器 FCKeditor 的应用
- PHP环境下配置在线编辑器FCKeditor
- 在线编辑器 FCKeditor 的应用
- PHP环境下配置在线编辑器FCKeditor
- PHP中使用FCKeditor编辑器
- 在线编辑器fckeditor的精简,使用和配置
- php在页面中调用fckeditor编辑器的方法
- php单文件版在线代码编辑器
- 当前主要所见即所得(WYSIWYG)在线编辑器介绍及应用
- PHP下CKeditor 在线编辑器的使用
- 在线编辑器FCKeditor 2.0试用小记
- 如何在ASP程序创建自己的在线编辑器FCKeditor(转载)
- FCKeditor的php应用
- FCKeditor的php应用 [转]