内容显示页
 
类别:JavaScript | 浏览(1617) | 2007-4-3 19:16:00 | 关闭广告

FCKeditor asp调用方法1
<!-- #INCLUDE file="FCKeditor/FCKeditor.asp" -->
<form action="sampleposteddata.asp" method="post" target="_blank">
<%
 Dim oFCKeditor
 Set oFCKeditor = New FCKeditor
 oFCKeditor.BasePath = "/FCKeditor/"
 oFCKeditor.ToolbarSet = "Default"
 oFCKeditor.Width = "100%"
 oFCKeditor.Height = "400"
 oFCKeditor.Value = "1234123123"
 oFCKeditor.Create "Content"
%>


  <input type="submit" value="Submit" />
</form>

FCKeditor asp调用方法2

<!--#include file="FCKEditor/fckeditor.asp" -->

<%
'多个控件使用一个编辑器
Set oFCKeditor = New FCKeditor
oFCKeditor.BasePath = "/fckeditor/"
oFCKeditor.ToolbarSet = "yongfa365"
oFCKeditor.Width = "100%"
oFCKeditor.Height = "100"
oFCKeditor.Config("ToolbarLocation") ="Out:xToolbar"
oFCKeditor.Value = ""
oFCKeditor.Create "txtContentHeader"
%>

<div id="xToolbar"></div>
<%
Set oFCKeditor = New FCKeditor
oFCKeditor.BasePath = "/fckeditor/"
oFCKeditor.ToolbarSet = "yongfa365"
oFCKeditor.Width = "100%"
oFCKeditor.Height = "400"
oFCKeditor.Config("ToolbarLocation") ="Out:xToolbar"
oFCKeditor.Value = ""
oFCKeditor.Create "txtContent"
%>

-------------------------------------------------------------------------------------------------------------
FCKeditor js调用方法1
<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调用方法2
<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.getElementById("btnShow").disabled = 'true';
 document.getElementById("btnShow").style.display = 'none';

}
//-->
</script>
<textarea name="Content"></textarea>
<input id=btnShow style="display:inline" type=button onClick="showFCK()">

FCKEdiror 精简版下载:fckeditor_2.4.3_lite_by_4ngel.rar


引用本页地址:http://www.yongfa365.com/item/322391ac7116334c.html
 
 
相关链接
 
网友评论:
1 真心 - 2007-5-28 14:53:48
朋友,你好,我看到你发的关于fckeditor的帖子,我在是ASP环境下测试的,怎么显示不了啊,麻烦老兄能不能做个例子发我看看,最好是发到我的邮箱里面shuang.net@163.com,万分感谢~~~~~~~~~
 
2 真心 - 2007-5-28 20:28:22
呵呵,问题解决了,我把FCK放到二级目录下忘记改路径了,郁闷,呵呵,搞了我半天,不值得,以后一定会注意的
 
3 yongfa365 - 2007-5-28 20:39:14
呵呵,问题一定会解决的。所以自己解决了是最好的,可以记的更深。
 
4 chidyll - 2008-8-8 12:48:33
请问如何调用英文的编辑器,如http://www.fckeditor.net/demo/language?lang=en

请回复我邮箱 万分感谢
 
5 yongfa365 - 2008-8-8 16:55:50
@chidyll

这个编辑器是多语言版的,调用英文版与调用中文版一样,如果你想用英文版,可以把文件要配置成英文的
 
6 chidyll - 2008-8-12 11:45:12
再次来访了 非常感谢你
开始不会如何配置 现在看了些这方面的文章 都可以了 还是非常感谢你的
 
姓名: 记住我
网址:
邮箱:
内容:
验证码:  验证码图片看不清? 换张图试试
 
   
 
 
文章分类
 
   

Power by :柳永法(yongfa365)'Blog | Model by :hibaidu | CSS by:众网友 | 京ICP备07011491号  QQ:64049027  E-mail:64049027qq.com

本空间赞助商:北京中科兴联信息技术有限公司