内容显示页
 
类别:JavaScript | 浏览(7157) | 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
再次来访了 非常感谢你
开始不会如何配置 现在看了些这方面的文章 都可以了 还是非常感谢你的
 
7 yifa - 2008-11-28 21:23:28
您好。我是用dreamweaver cs3 asp vbscript.
fckeditor 配置后,编辑文章,测试没问题;但文章储存后,再测试,fckeditor 的页面就不见了,只剩一般的textarea。

帮帮忙,给个意见。
谢谢。
 
8 yongfa365 - 2008-12-1 11:20:58
@yifa
你的问题太笼统了,估计,你对把你问题及你想要的说明白,问题就解决了
 
9 331932569 - 2009-5-20 9:11:44
老兄,您好,我用您这个编辑器不能上传图片和其他文件,请问怎么配置,给与指导,谢谢,我的QQ331932569
 
10 yongfa365 - 2009-5-20 9:15:52

@331932569
首先,这个编辑器不是我的,官方网站是:www.fckeditor.net/
其次,你的问题可以参见配置:
www.yongfa365.com/item/FCKEditor-2.5.1-Setup-Modify-For-Asp.html
 
11 浪子确实浪 - 2010-11-12 16:43:40
挺不错的
 
姓名: 记住我
网址:
邮箱:
内容:
验证码:  验证码图片 看不清? 换张图试试
 
     
 
 
文章分类
 
 
.Net + C#(73)
 
 
ASP+VBS(161)
 
 
 
Linux(10)
 
 
 
web 2.0(26)
 
 
 
 
 
心程(68)
 
生活(97)
 
 
     

Power by :柳永法(yongfa365)'Blog  | 京ICP备07011491号  QQ:64049027  E-mail:64049027@qq.com yongfa365'CodePlex yongfa365'CodeGoogle

申请友情链接 要求:跟本站主题相类似正规网站,双方交换为首页位置

转载请注明来源,以便后人及时得到最新、修正、加强版!!!