当前位置:首页 » 网页前端 » webeditor
扩展阅读
webinf下怎么引入js 2023-08-31 21:54:13
堡垒机怎么打开web 2023-08-31 21:54:11

webeditor

发布时间: 2022-03-08 02:34:27

❶ 使用ewebeditor在线编辑器,提示安装插件

是要安装插件的,一个OCX控件

❷ eWebEditor 显示 无法显示网页

可能是你的浏览器的JAVA设置不好吧

❸ eWebEditor哪个比较的好用

fckeditor比eWebEditor好 功能全 而且免费

❹ ewebeditor纯文本

eWebEditor本身具有三种粘贴方式啊!

常规方式粘贴,
纯文本方式粘贴,
或者以Word方式粘贴。

❺ ewebeditor 具体怎么使用啊

eWebEditor的调用是非常简单,基本上只是在原来的使用中加入一行代码。
标准调用:
<iframe ID="eWebEditor1" src="/ewebeditor.asp?id=content1&style=standard" frameborder="0" scrolling="no" width="500" HEIGHT="350"></iframe>
参数说明:
�6�1 /ewebeditor.asp应改为你实际安装的路径
�6�1 参数id:相关联的表单项名,也就是提交保存页要引用的表单项名,多个调用时,请保证id不同,可参见后面例子
�6�1 参数style:使用的样式名,可以是标准的样式名或自定义的样式名,如果使用标准standard可留空
�6�1 width,height:根据实际需要设置,eWebEditor将自动调整与其适应
�6�1 在后台管理中,可以得到每个样式的最佳调用代码
所有入口参数:(即:eWebEditor.asp?后面的参数)
�6�1 id:相关联的保存编辑内容的表单项名,也就是提交保存页要引用的表单项名
�6�1 style:使用的样式名,可以是标准的样式名或自定义的样式名,如果使用标准standard可留空
�6�1 originalfilename:相关联的保存上传原文件名列表的表单项名,必须是input类型,可以带onchange事件[例子]
�6�1 savefilename:相关联的保存上传保存文件名列表的表单项名,必须是input类型,可以带onchange事件[例子]
�6�1 savepathfilename:相关联的保存上传保存文件名(带路径)列表的表单项名,必须是input类型,可以带onchange事件[例子]
例子:新增表单
你原来可能是:
<textarea name="content1" rows=10 cols=50></textarea>
现在是:
<input type="hidden" name="content1" value="">
<iframe ID="eWebEditor1" src="/ewebeditor.asp?id=content1&style=standard" frameborder="0" scrolling="no" width="500" HEIGHT="350"></iframe>
或者
<textarea name="content1" style="display:none"></textarea>
<iframe ID="eWebEditor1" src="/ewebeditor.asp?id=content1&style=standard" frameborder="0" scrolling="no" width="500" HEIGHT="350"></iframe>
例子:修改表单
你原来可能是:
<textarea name="content1" rows=10 cols=50><%=Server.HTMLEncode(oRs("D_Content"))%></textarea>
现在是:
<input type="hidden" name="content1" value="<%=Server.HTMLEncode(oRs("D_Content"))%>">
<iframe ID="eWebEditor1" src="/ewebeditor.asp?id=content1&style=standard" frameborder="0" scrolling="no" width="500" HEIGHT="350"></iframe>
或者
<textarea name="content1" style="display:none"><%=Server.HTMLEncode(oRs("D_Content"))%></textarea>
<iframe ID="eWebEditor1" src="/ewebeditor.asp?id=content1&style=standard" frameborder="0" scrolling="no" width="500" HEIGHT="350"></iframe>
注意事项:
�6�1 eWebEditor允许在同一表单里有多个,但请保证id在整个网页中是唯一的。即如果已经用了input name=content1第二个调用就要input name=content2之类的。
�6�1 在使用textarea作为原表单项时,要加入style="display:none"。
�6�1 在input修改时一定要用value="",而不是value=''。
�6�1 一定要在动态加入value值时用Server.HTMLEncode()进行处理,否则有可能内容被截掉。
高级调用:
eWebEditor还提供了一些高级调用的方法,如下,但请保证大小写一致:
�6�1 getHTML():返回编辑器的内容
�6�1 setHTML( html ):设置编辑器的内容
�6�1 insertHTML( html ):在当前选择处插入内容
�6�1 appendHTML( html ):在文档末尾追加内容
�6�1 setMode( NewMode ):改变当前编辑状态

❻ 如何应用ewebeditor 破解版

从eWebEditor产品网站下载最新的版本。
解压下载下来的压缩文件到你本机(确定eWebEditor内的目录文件结构层次保持与压缩文件内一致)。
在站点上建一个新文件夹,如:/eWebEditor/(最好在要目录下,调用更方便)。
把eWebEditor在的所有文件及目录上传到你站点刚才建立的文件夹中。
运行例子文件(http://www.yoursite.com/ewebeditor/example/test.asp),看是否运行正常。OK。
设置:
eWebEditor带有后台管理功能,你可以方便对样式,上传文件等进行管理。设置请注意:
后台管理的登录地址:http://www.yoursite.com/ewebeditor/admin_login.asp
第一次安装请用默认用户admin和密码admin登陆后台,并进入管理页面更改管理用户和密码
建议安装好后,更改数据库名字,以免别人恶意下载,默认数据名为db/ewebeditor.mdb,更改名字后请修改include/startup.asp文件中相关连接
系统自带有几个标准样式,不允许修改,在新增样式时,最好先预览,然后通过“拷贝标准样式”的方式,以达到快速新增样式的目的,且不易出错
调用:
eWebEditor的调用是非常简单,基本上只是在原来的使用中加入一行代码。
标准调用:
<iframe ID=“eWebEditor1” src=“/ewebeditor.asp?id=content1&style=standard” frameborder=“0” scrolling=“no” width=“500” HEIGHT=“350”></iframe>
参数说明:
/ewebeditor.asp应改为你实际安装的路径
参数id:相关联的表单项名,也就是提交保存页要引用的表单项名,多个调用时,请保证id不同,可参见后面例子
参数style:使用的样式名,可以是标准的样式名或自定义的样式名,如果使用标准standard可留空
参数style:使用的样式名,可以是标准的样式名或自定义的样式名,如果使用标准standard可留空
width,height:根据实际需要设置,eWebEditor将自动调整与其适应
在后台管理中,可以得到每个样式的最佳调用代码
所有入口参数:(即:eWebEditor.asp?后面的参数)
id:相关联的保存编辑内容的表单项名,也就是提交保存页要引用的表单项名
style:使用的样式名,可以是标准的样式名或自定义的样式名,如果使用标准standard可留空
originalfilename:相关联的保存上传原文件名列表的表单项名,必须是input类型,可以带onchange事件[例子]
savefilename:相关联的保存上传保存文件名列表的表单项名,必须是input类型,可以带onchange事件[例子]
savepathfilename:相关联的保存上传保存文件名(带路径)列表的表单项名,必须是input类型,可以带onchange事件[例子]
例子:新增表单
原来可能是:
<textarea name=“content1” rows=10 cols=50></textarea>
现在是:
<input type=“hidden” name=“content1” value=“”>
<iframe ID=“eWebEditor1” src=“/ewebeditor.asp?id=content1&style=standard” frameborder=“0” scrolling=“no” width=“500” HEIGHT=“350”></iframe>
或者
<textarea name=“content1” style=“display:none”></textarea>
<iframe ID=“eWebEditor1” src=“/ewebeditor.asp?id=content1&style=standard” frameborder=“0” scrolling=“no” width=“500” HEIGHT=“350”></iframe>
例子:修改表单
原来可能是:
<textarea name=“content1” rows=10 cols=50><%=Server.HTMLEncode(oRs(“D_Content”))%></textarea>
现在是:
<input type=“hidden” name=“content1” value=“<%=Server.HTMLEncode(oRs(”D_Content“))%>”>
<iframe ID=“eWebEditor1” src=“/ewebeditor.asp?id=content1&style=standard” frameborder=“0” scrolling=“no” width=“500” HEIGHT=“350”></iframe>
或者
<textarea name=“content1” style=“display:none”><%=Server.HTMLEncode(oRs(“D_Content”))%></textarea>
<iframe ID=“eWebEditor1” src=“/ewebeditor.asp?id=content1&style=standard” frameborder=“0” scrolling=“no” width=“500” HEIGHT=“350”></iframe>
<textarea name=“content1” style=“display:none”><%=Server.HTMLEncode(oRs(“D_Content”))%></textarea>

❼ 为什么ewebeditor使用不正常

父路径的问题。
II6基于安全的考虑默认是没有开启父路径的

解决方法:
在IIS中 属性->主目录->配置->选项中。把”启用父路径“前面打上勾。确认刷新

❽ 用什么样的Web编辑器,eWebEditor,kindeditor还是FCKEditor

我接触的第一个Web编辑器是eWebEditor。它是国产的,在IE7及以下的版本中效果是非常不错的,不兼容IE8及火狐,而且使用不当就会留下上传漏洞的隐患。这样的编辑器,还是不要用了(很想支持国产,但是...)

放弃eWebEditor后,我选择了kindeditor。它是老外开发的,能兼容目前所有版本的浏览器,纯静态(文件上传需要自
己实现,小问题)。但是它不支持Word表格的复制(就是不能直接从Word上复制表格到编辑器中),而且会经常出现图文丢失的现象,郁闷,我还是不用了(老外的东西也不一定好,...)

前段时间接触了FCKEditor,发现这个编辑器相当不错,查了一下,网上大家对它的评价超高(貌似淘宝也是用的这个编
辑器)。它也是老外开发的,能兼容目前所有版本的浏览器,对Word的支持非常好,复制表格没有一点变形。到目前为
止,我已经在两个项目中使用了这个编辑器,一个是基于PHP的订餐系统,另外一个是基于ASP的公司网站,FCKEditor对PHP,ASP以及ASP.NET的支持都很好,使用起来非常方便。

编辑器的安全问题一直是一个令很多人头痛的问题,这主要在于文件上传上。各种编辑器默认情况下都没有对文件上传
进行身份认证(它也不可能实现一个通用的身份认证),开发者必须根据自己系统的情况加入适当的身份认证代码。另外
编辑器允许的文件上传类型也需要进行严格的限制,例如eWebEditor允许在后台修改上传文件类型,这样一旦歹徒获取后
台密码,即可轻易上传任意格式的文件。低版本的FCKEditor(好像是2.1以下的版本)默认情况下允许上传任意格式的文件。

总结一下FCKEditor的使用(以2.6.5版为例):

(1)精简,"言多必失",文件多了也是一种隐患。FCKEditor支持多种服务器脚本语言,实际使用的时候我们根本用不了那么多文件,我们要根据自己的需要对其进行精简。
对于ASP系统来说:

FCKEditor根目录,仅保留"fckeditor.asp,fckconfig.js,fckeditor.js,fckpackager.xml,fckstyles.xml,
fcktemplates.xml"这些文件以及editor目录。删除示例目录"_samples"。
"fckeditor\editor\filemanager\connectors"目录下面仅保留"asp"目录,删除其它目录和文件。

对于PHP系统来说:

FCKEditor根目录,仅保留"fckeditor.php,fckeditor_php4.php,fckeditor_php5.php,fckconfig.js,fckeditor.js,
fckpackager.xml,fckstyles.xml,fcktemplates.xml"这些文件以及editor目录。删除示例目录"_samples"。"fckeditor\editor\filemanager\connectors"目录下面仅保留"php"目录,删除其它目录和文件。

(2)修改文件上传采用的脚本程序(语言)。

默认的FCKEditor文件上传程序为asp,如果是用在asp系统中,那就不用再修改了。

如果是用在PHP系统中的话,需要做如下修改,打开fckconfig.js
找到:
var _FileBrowserLang ge = asp
var _QuickUploadLang ge = asp
改成:
var _FileBrowserLang ge = php
var _QuickUploadLang ge = php

(3)开启文件上传,修改文件上传目录。

对于ASP系统来说:
打开fckeditor\editor\filemanager\connectors\asp\config.asp
启用文件上传:

找到:
ConfigIsEnabled = false

改成:
ConfigIsEnabled = tr

设置上传存放目录:

找到:
ConfigUserFilesPath = "/admin/uppic/"
改成:
ConfigUserFilesPath = "自定义的路径"

对于PHP系统来说:
打开fckeditor/editor/filemanager/browser/default/connectors/php/config.php
启用文件上传:

找到:
$Config[Enabled] = false

改成:
$Config[Enabled] = tr

设置上传存放目录:

找到:
$Config[UserFilesPath] = /userfiles/
改成:
$Config[UserFilesPath] = 自定义的路径

(4)修改上传文件命名方式。

FCKEditor上传文件,文件名采用原文件名,如果想采用自定义的文件命名方式(比如,随即名称),可以修改如下地
方:

对于ASP系统来说:
打开fckeditor\sample\edit\editor\filemanager\connectors\asp\commands.asp

找到:
sFileName = SanitizeFileName( sFileName )

将该句改为自定义的文件命名格式,例如:

dim RndStr
Randomize
RndStr = Cstr(Fix(9000*rnd()+1000)) 产生一个随机数
sFileName =year(date)&month(Date)&day(Date)&hour(time)&minute(time)&second(time)&RndStr &"." &
**tension

对于PHP系统来说:
打开fckeditor\editor\editor\filemanager\connectors\php\commands.php

找到:
$sOriginalFileName = $sFileName ;

在该句前面加入:

// 初始化种子
$sstr =split(" ",microtime(),5);
$seed =$sstr[0]*10000;
// 使用种子初始化随机数发生器
srand($seed);
// 生成指定范围内的随机数
$random =rand(1000,10000);
// 合成随即的文件名
$sFileName = date("YmdHis", time()).$random.".".$**tension;

(5)FCKEditor在程序中引用方式。

对于ASP系统来说:
需要包含下面的头文件
<!--#incl? file="fckeditor/fckeditor.asp"-->
在编辑器所在的位置添加如下代码:
<%
Dim oFCKeditor
Set oFCKeditor = New FCKeditor
oFCKeditor.BasePath = "/fckeditor/" 这个路径必须是相对于站点根目录的路径,设置错误编辑器
将无法显示

oFCKeditor.ToolbarSet="Default"
oFCKeditor.Width = "98%"
oFCKeditor.Height= "500px"

oFCKeditor.Val = "" 设置默认值
oFCKeditor.Create "shangpin_description" 编辑器的id,相当于input标签的name属性值,这里是
shangpin_description
%>

对于PHP来说:
在编辑器所在的位置添加如下代码:
<?php
incl?("fckeditor/fckeditor.php"); // 头文件
$oFCKeditor = new FCKeditor("shangpin_description") ; // 编辑器的id,相当于input标签的
name属性值,这里是shangpin_description
$oFCKeditor->BasePath="/fckeditor/ " ; //设置FCKeditor路径

$oFCKeditor->ToolbarSet ="Default";
$oFCKeditor->Width="98%";
$oFCKeditor->Height="500px";

$oFCKeditor->Val=""; // 设置默认值
$oFCKeditor->Create();
?>

(6)获取FCKEditor中的数据。

对于服务器端脚本程序来说,将"编辑器的id"当做input标签的name属性值来获取即可,例如:

在ASP中reqst("shangpin_description"),在PHP中$_REQST["shangpin_description"]

JS中用FCKeditorAPI.GetInstance(shangpin_description).GetXHTML(tr)得到shangpin_description对应的值

❾ 我用的asp后台程序,eWebEditor编辑器编辑新闻的时候,不能插入图片

eWebEditor所有版本都完全源程序提供,使得开发人员更能了解其内部的动作,使得在编辑状态编辑的文字、图片等内容都在后台自动转换为可被浏览器识别的HTML

❿ ewebeditor文本在线编辑问题

留言的代码

<textarea name="Content" style="display:none"></textarea>
<iframe ID='eWebEditor1' src='ewebeditor/ewebeditor.htm?id=Content&style=guestbook' frameborder='0' scrolling='no' width='550' height='350'></iframe>

然后在写入数据库时这样写

先定义一个变量 如 TextContent

Dim TextContent

TextContent = ""
For i = 1 To Request.Form("Content").Count
TextContent = TextContent & Request.Form("Content")(i)
Next

Rs("Content") = TextContent