FCKeditor编辑器使用
来源:互联网 发布:react state数组 编辑:程序博客网 时间:2024/04/29 00:11
http://sourceforge.net/projects/fckeditor/
Online text editor (DHTML editor), for ASP, ASP.NET, ColdFusion, PHP, Java and JavaScript brings to the web many of the powerful features of known desktop editors like Word. It's XHTML compliant and works with Firefox, Mozilla, Netscape and IE.
可以看出,FCKeditor的功能很强大。
1、FCKeditor下载。首先从http://sourceforge.net/projects/fckeditor/这里下载最新版本,然后解压到你网站的根目录下。
2、添加新内容。FCKeditor支持在多种语言中使用,这里以在ASP中使用为例。使用时首先在你要加入编辑器的页面里加入以下这段代码(办文件包含进来):
要使用文件上传功能,需要先设置FCKeditorditor/filemanager/browser/default/connectors/asp目录下的config.asp文件。设置如下:
设置完毕后就可以在插入图片和Flash的方使用文件上传和管理功能了。
Online text editor (DHTML editor), for ASP, ASP.NET, ColdFusion, PHP, Java and JavaScript brings to the web many of the powerful features of known desktop editors like Word. It's XHTML compliant and works with Firefox, Mozilla, Netscape and IE.
可以看出,FCKeditor的功能很强大。
- 功能介绍:具备基本编辑功能、支持插入表情、图片、特殊符号,FLASH、表格、完整的表单自带了文件管理器、整张网页编辑,支持插件,皮肤、样式表、软键盘
- 特色介绍:fckeditor 的样式表功能是基于xml的在设置上要比较复杂,但是功能上却更强大,自带了各种多国语言,翻译质量不错。有完整的服务器文件管理、上传功能(需要设 置)。支持各种服务器语言(asp php .net html perl fcm),ui界面采用了网页对话框设计。
1、FCKeditor下载。首先从http://sourceforge.net/projects/fckeditor/这里下载最新版本,然后解压到你网站的根目录下。
2、添加新内容。FCKeditor支持在多种语言中使用,这里以在ASP中使用为例。使用时首先在你要加入编辑器的页面里加入以下这段代码(办文件包含进来):
<!-- #INCLUDE file="FCKeditor/fckeditor.asp" -->
然后在需要文本编辑区域的地方加入如下代码:<%
Dim oFCKeditor
Set oFCKeditor = New FCKeditor
oFCKeditor.BasePath = "/FCKeditor/"
oFCKeditor.Create "FCKeditor1"
%>
在接收文本区域内容时就把他看成是类似于表单中的一个文本区域来使用,代码如下:Dim oFCKeditor
Set oFCKeditor = New FCKeditor
oFCKeditor.BasePath = "/FCKeditor/"
oFCKeditor.Create "FCKeditor1"
%>
sContent=Request.Form("FCKeditor1")
3、修改已有的内容。修改内容时的使用方法和添加内容是的方法大概一样,只在第二步的代码有一点不一样,需要把已有的内容赋给oFCKeditor,代码如下:<%
Dim oFCKeditor
Set oFCKeditor = New FCKeditor
oFCKeditor.BasePath = "/FCKeditor/"
oFCKeditor.Value=rs("content") 'rs("content")是从数据库中读出的内容
oFCKeditor.Create "FCKeditor1"
%>
4、文件上传设置。在FCKeditor中,将上传的文件分为了四种类型:图片、flash、视频声音和其他文件,每种类型能上传的文件格式都可以设定。Dim oFCKeditor
Set oFCKeditor = New FCKeditor
oFCKeditor.BasePath = "/FCKeditor/"
oFCKeditor.Value=rs("content") 'rs("content")是从数据库中读出的内容
oFCKeditor.Create "FCKeditor1"
%>
要使用文件上传功能,需要先设置FCKeditorditor/filemanager/browser/default/connectors/asp目录下的config.asp文件。设置如下:
ConfigIsEnabled = True 'True为允许文件上传,False为不允许
ConfigUserFilesPath = "/UploadFile/" '设置文件上传的路径,就在网站的根目录下
以下的设置就是各种类型文件的允许上传格式,也可以自己设定。ConfigUserFilesPath = "/UploadFile/" '设置文件上传的路径,就在网站的根目录下
设置完毕后就可以在插入图片和Flash的方使用文件上传和管理功能了。
- FCKeditor编辑器使用
- FCKeditor编辑器使用
- FCKeditor编辑器使用
- FCKeditor编辑器的使用
- FCKEditor编辑器使用集锦
- fckeditor网页编辑器使用
- HTML编辑器FCKeditor使用
- fckeditor编辑器的使用
- 如何使用fckeditor编辑器
- fckeditor编辑器使用
- FCKEDITOR编辑器的使用
- fckeditor 在线编辑器使用
- fckeditor编辑器的使用
- FCKeditor在线编辑器的使用
- FCKeditor在线编辑器的使用
- FCKeditor在线编辑器的使用
- FCKeditor在线编辑器的使用
- FCKeditor在线编辑器的使用
- 随笔--股票终于卖了!
- 通过Visual Studio 2005 类设计器设计一个API
- IE实现的DOM事件流
- 迅雷创业与生存密码(节选自网络)
- java中文件操作大全(转)
- FCKeditor编辑器使用
- 金山词霸每日一句
- 开发RCP时如何去掉NetBeans Platform的版本信息
- VB.NET语法基础
- c# 做 windows 托盘程序
- 多友北京总部
- 突然不能上网的解决方案
- 5步成为本地安全导师
- #!/usr/bin/sh的用途