一个简单的FCKEditor步骤
2014-09-29 13:01
288 查看
第一步:首先打开下载的fckEditor目录_samps下面的default.html
第二部:打开页面查看框架源代码 复制form里面的内容
<form action="../php/sampleposteddata.php" method="post" target="_blank">
<script type="text/javascript">
<!--
// Automatically calculates the editor base path based on the _samples directory.
// This is usefull only for these samples. A real application should use something like this:
// oFCKeditor.BasePath = '/fckeditor/' ; // '/fckeditor/' is the default value.
var sBasePath = document.location.href.substring(0,document.location.href.lastIndexOf('_samples')) ;
var oFCKeditor = new FCKeditor( 'FCKeditor1' ) ;
oFCKeditor.BasePath = sBasePath ;
oFCKeditor.Height = 300 ;
oFCKeditor.Value = '<p>This is some <strong>sample text<\/strong>. You are using <a
href="http://www.fckeditor.net/">FCKeditor<\/a>.<\/p>' ;
oFCKeditor.Create() ;
//-->
</script>
<br />
<input type="submit" value="Submit" />
</form>
第三:新建一个html网页,把上面的加进去。
接着
<!-- 导入js文件 -->
<script type="text/javascript" src="fckeditor.js"></script>
第四部:修改form里面的内容:
<form action="" method="post" target="_blank">
<textarea name="content"></textarea>
<script type="text/javascript">
<!--
var oFCKeditor = new FCKeditor( 'content' ) ;//里面的参数一定要和textarea的name名字相同,否则不能替换
oFCKeditor.BasePath = "./" ;//当前editor的目录,必须以“/”结束
oFCKeditor.Height = 300 ;
oFCKeditor.Value = '显示的默认值' ;
//oFCKeditor.Create() ;//创建一个FCKEditor
oFCKeditor.ReplaceTextarea()//替换上面的textarea使其能在网页上用
</script>
<br />
<input type="submit" value="Submit" />
</form>
第五部:完成测试
相关文章推荐
- 创建一个简单iphone工程的步骤
- 在ArcGIS Server Java ADF中创建一个自定义task的简单步骤
- 简单工作流引擎是按一个单据的(类型),单据的(主键) 来处理流程步骤的,这个就是工作流设计的核心思想
- 如何用FFmpeg编写一个简单播放器详细步骤介绍(转载)
- 一个最简单的源Filter的编写步骤 转贴
- Compliers-一个编译器的各个步骤简单描述
- 在Java中建立一个简单的客户端涉及4个步骤
- Android Trick 13: 改变一个apk的packagename的简单流程,就2个步骤
- 简单工作流引擎是按一个单据的(类型),单据的(主键) 来处理流程步骤的,这个就是工作流设计的核心思想
- 一个最简单的源Filter的编写步骤
- C#实现一个图形的动态效果(简单矩形不断向下运动的实现简单步骤)
- 一个最简单的源Filter的编写步骤 转贴
- 写一个简单的java web页面必须的步骤
- Android Trick 13: 改变一个apk的packagename的简单流程,就2个步骤
- 开发一个简单的JSP标签完整案例的步骤
- jBPM4.2 安装到tomcat 和 mysql上的步骤。并且创建一个最简单的应用
- 通过一个简单的AJAX实例,了解其大致步骤
- 一个最简单的源Filter的编写步骤 转贴
- 1.编写一个简单的C语言程序:根据输入的两个整数求平均值并且在终端输出,通过gcc编译器得到它的汇编程序文件。 2.编写一个C语言程序:打印输出所有“水仙花数”,用gdb调试程序(给出步骤)。所谓“
- 可以通过以下步骤生成一个简单的证书: