當前位置:首頁 » 網頁前端 » 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