FCKeditor使用方法 据说CSDN就是用的FCKeditor,请教一下简单问题,设置输入框中的初始值是如何设置的呢?? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 <html><head><title>FCKeditor的应用</title></head><body><?phpecho $_POST["fckeditor1"];?><h2>FCKeditor的应用</h2><script type="text/javascript" src="./FCKeditor/fckeditor.js"></script><form name="form1" action="<?= $_SERVER["PHP_SELF"]?>" method="post"><script language="javascript">function cj(){var oFCKeditor = new FCKeditor( 'fckeditor1' ) ;oFCKeditor.BasePath = "./fckeditor/" ;oFCKeditor.Height = 200 ;oFCKeditor.ToolbarSet = "Default";oFCKeditor.ReplaceTextarea("111111") ;}</script><textarea name="fckeditor1" type="hidden" style="display:none;"></textarea><input type="button" value="编辑文章" name="bianji" onclick="cj();document.form1.bianji.disabled=true;" /><input type="submit" value="提交文章" /></form></body></html> 知道了,php的调用方式如下<?php //包含fckeditor类 include("fckeditor/fckeditor.php") ; //创建一个FCKeditor,表单名称为 jzleditor $oFCKeditor = new FCKeditor("jzleditor"); //设置编辑器路径 $oFCKeditor->BasePath = "fckeditor/"; $oFCKeditor->ToolbarSet = "Default";//工具按钮 $oFCKeditor->Value =$cont; //;设置初始内容 $oFCKeditor->Width="100%"; //设置它的宽度 $oFCKeditor->Height="550px"; //设置它的高度 $oFCKeditor->Create(); ?> 请教一下memcache相关的 如何解决多指向登录 我的for循环为什么只能循环一次··· PHP多个连续空格回车替换为一个,如何写更简短? 请问正则表达式如何解析这种语句:add(1,2,3) 如何用gd库动态生成条状图 搜集常见的网页安全措施(如防盗链,密码保护等等)和小技巧。目的是大家交流学习,分不是问题 这段代码为什么出错?(php+javascript) 一个烦了我很久的问题 谁有关于php.net的相关学习资料,介绍一些给大家好吗? 谁给个smarty分页的例子啊 谁帮我写个伪静态规则?
<head>
<title>FCKeditor的应用</title>
</head>
<body>
<?php
echo $_POST["fckeditor1"];
?>
<h2>FCKeditor的应用</h2>
<script type="text/javascript" src="./FCKeditor/fckeditor.js"></script>
<form name="form1" action="<?= $_SERVER["PHP_SELF"]?>" method="post">
<script language="javascript">
function cj(){
var oFCKeditor = new FCKeditor( 'fckeditor1' ) ;
oFCKeditor.BasePath = "./fckeditor/" ;
oFCKeditor.Height = 200 ;
oFCKeditor.ToolbarSet = "Default";
oFCKeditor.ReplaceTextarea("111111") ;
}
</script>
<textarea name="fckeditor1" type="hidden" style="display:none;"></textarea>
<input type="button" value="编辑文章" name="bianji" onclick="cj();document.form1.bianji.disabled=true;" />
<input type="submit" value="提交文章" />
</form>
</body>
</html>
<?php
//包含fckeditor类
include("fckeditor/fckeditor.php") ;
//创建一个FCKeditor,表单名称为 jzleditor
$oFCKeditor = new FCKeditor("jzleditor");
//设置编辑器路径
$oFCKeditor->BasePath = "fckeditor/";
$oFCKeditor->ToolbarSet = "Default";//工具按钮
$oFCKeditor->Value =$cont; //;设置初始内容
$oFCKeditor->Width="100%"; //设置它的宽度
$oFCKeditor->Height="550px"; //设置它的高度
$oFCKeditor->Create();
?>