你是要嵌入到你的網(wǎng)站中么
這個是下載頁面
http://www.webasp.net/download/2/1816.htm這個是教程,下載后里面會有的,使用方法很簡單標(biāo)準(zhǔn)調(diào)用:
<iframe ID="eWebEditor1" src="/ewebeditor.asp?id=content1&style=standard" frameborder="0" scrolling="no" width="500" HEIGHT="350"></iframe>
參數(shù)說明:
/ewebeditor.asp應(yīng)改為你實際安裝的路徑
參數(shù)id:相關(guān)聯(lián)的表單項名,也就是提交保存頁要引用的表單項名,多個調(diào)用時,請保證id不同,可參見后面例子
參數(shù)style:使用的樣式名,可以是標(biāo)準(zhǔn)的樣式名或自定義的樣式名,如果使用標(biāo)準(zhǔn)standard可留空
width,height:根據(jù)實際需要設(shè)置,eWebEditor將自動調(diào)整與其適應(yīng)
在后臺管理中,可以得到每個樣式的最佳調(diào)用代碼
所有入口參數(shù):(即:eWebEditor.asp?后面的參數(shù))
id:相關(guān)聯(lián)的保存編輯內(nèi)容的表單項名,也就是提交保存頁要引用的表單項名
style:使用的樣式名,可以是標(biāo)準(zhǔn)的樣式名或自定義的樣式名,如果使用標(biāo)準(zhǔn)standard可留空
sourcefilename:相關(guān)聯(lián)的保存上傳原文件名列表的表單項名,必須是input類型,可以帶onchange事件[例子]
savefilename:相關(guān)聯(lián)的保存上傳保存文件名列表的表單項名,必須是input類型,可以帶onchange事件[例子]
例子:新增表單
你原來可能是:
<textarea name="content1" rows=10 cols=50></textarea>
現(xiàn)在是:
<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>
現(xiàn)在是:
<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>
注意事項:
eWebEditor允許在同一表單里有多個,但請保證id在整個網(wǎng)頁中是唯一的。即如果已經(jīng)用了input name=content1第二個調(diào)用就要input name=content2之類的。
在使用textarea作為原表單項時,要加入style="display:none"。
在input修改時一定要用value="",而不是value=''。
一定要在動態(tài)加入value值時用Server.HTMLEncode()進(jìn)行處理,否則有可能內(nèi)容被截掉。
高級調(diào)用