把把那個(gè)Iframe 的id
??和你一個(gè)輸入框的id 一樣就行了...
如果不清楚
請(qǐng)看以下代碼
-----------------------------------------------------------------------------------------------------------------
調(diào)用:
eWebEditor的調(diào)用是非常簡(jiǎn)單,基本上只是在原來(lái)的使用中加入一行代碼。
標(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ù)說(shuō)明:
/ewebeditor.asp應(yīng)改為你實(shí)際安裝的路徑
參數(shù)id:相關(guān)聯(lián)的表單項(xiàng)名,也就是提交保存頁(yè)要引用的表單項(xiàng)名,多個(gè)調(diào)用時(shí),請(qǐng)保證id不同,可參見(jiàn)后面例子
參數(shù)style:使用的樣式名,可以是標(biāo)準(zhǔn)的樣式名或自定義的樣式名,如果使用標(biāo)準(zhǔn)standard可留空
width,height:根據(jù)實(shí)際需要設(shè)置,eWebEditor將自動(dòng)調(diào)整與其適應(yīng)
在后臺(tái)管理中,可以得到每個(gè)樣式的最佳調(diào)用代碼
所有入口參數(shù):(即:eWebEditor.asp?后面的參數(shù))
id:相關(guān)聯(lián)的保存編輯內(nèi)容的表單項(xiàng)名,也就是提交保存頁(yè)要引用的表單項(xiàng)名
style:使用的樣式名,可以是標(biāo)準(zhǔn)的樣式名或自定義的樣式名,如果使用標(biāo)準(zhǔn)standard可留空
originalfilename:相關(guān)聯(lián)的保存上傳原文件名列表的表單項(xiàng)名,必須是input類型,可以帶onchange事件[例子]
savefilename:相關(guān)聯(lián)的保存上傳保存文件名列表的表單項(xiàng)名,必須是input類型,可以帶onchange事件[例子]
savepathfilename:相關(guān)聯(lián)的保存上傳保存文件名(帶路徑)列表的表單項(xiàng)名,必須是input類型,可以帶onchange事件[例子]
例子:新增表單
你原來(lái)可能是:
<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>
例子:修改表單
你原來(lái)可能是:
<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>
注意事項(xiàng):
eWebEditor允許在同一表單里有多個(gè),但請(qǐng)保證id在整個(gè)網(wǎng)頁(yè)中是唯一的。即如果已經(jīng)用了input name=content1第二個(gè)調(diào)用就要input name=content2之類的。
在使用textarea作為原表單項(xiàng)時(shí),要加入style="display:none"。
在input修改時(shí)一定要用value="",而不是value=''。
一定要在動(dòng)態(tài)加入value值時(shí)用Server.HTMLEncode()進(jìn)行處理,否則有可能內(nèi)容被截掉。
??和你一個(gè)輸入框的id 一樣就行了...
如果不清楚
請(qǐng)看以下代碼
-----------------------------------------------------------------------------------------------------------------
調(diào)用:
eWebEditor的調(diào)用是非常簡(jiǎn)單,基本上只是在原來(lái)的使用中加入一行代碼。
標(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ù)說(shuō)明:
/ewebeditor.asp應(yīng)改為你實(shí)際安裝的路徑
參數(shù)id:相關(guān)聯(lián)的表單項(xiàng)名,也就是提交保存頁(yè)要引用的表單項(xiàng)名,多個(gè)調(diào)用時(shí),請(qǐng)保證id不同,可參見(jiàn)后面例子
參數(shù)style:使用的樣式名,可以是標(biāo)準(zhǔn)的樣式名或自定義的樣式名,如果使用標(biāo)準(zhǔn)standard可留空
width,height:根據(jù)實(shí)際需要設(shè)置,eWebEditor將自動(dòng)調(diào)整與其適應(yīng)
在后臺(tái)管理中,可以得到每個(gè)樣式的最佳調(diào)用代碼
所有入口參數(shù):(即:eWebEditor.asp?后面的參數(shù))
id:相關(guān)聯(lián)的保存編輯內(nèi)容的表單項(xiàng)名,也就是提交保存頁(yè)要引用的表單項(xiàng)名
style:使用的樣式名,可以是標(biāo)準(zhǔn)的樣式名或自定義的樣式名,如果使用標(biāo)準(zhǔn)standard可留空
originalfilename:相關(guān)聯(lián)的保存上傳原文件名列表的表單項(xiàng)名,必須是input類型,可以帶onchange事件[例子]
savefilename:相關(guān)聯(lián)的保存上傳保存文件名列表的表單項(xiàng)名,必須是input類型,可以帶onchange事件[例子]
savepathfilename:相關(guān)聯(lián)的保存上傳保存文件名(帶路徑)列表的表單項(xiàng)名,必須是input類型,可以帶onchange事件[例子]
例子:新增表單
你原來(lái)可能是:
<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>
例子:修改表單
你原來(lái)可能是:
<textarea name="content1" rows=10 cols=50><%=Server.HTMLEncode(oRs("D_Content"))%></textarea>
現(xiàn)在是:
請(qǐng)問(wèn)各位有誰(shuí)用過(guò)ewebeditor在線編輯器嗎,為什么在改代碼后總是不能提交呢。能編輯,就是不能提交,改了跟沒(méi)改一樣。
<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>
注意事項(xiàng):
eWebEditor允許在同一表單里有多個(gè),但請(qǐng)保證id在整個(gè)網(wǎng)頁(yè)中是唯一的。即如果已經(jīng)用了input name=content1第二個(gè)調(diào)用就要input name=content2之類的。
在使用textarea作為原表單項(xiàng)時(shí),要加入style="display:none"。
在input修改時(shí)一定要用value="",而不是value=''。
一定要在動(dòng)態(tài)加入value值時(shí)用Server.HTMLEncode()進(jìn)行處理,否則有可能內(nèi)容被截掉。
<textarea name="content" style="display:none">
<%=Server.HTMLEncode(Rs("Content"))%>
</textarea>
<iframe ID="eWebEditor1" src="/ewebeditor.asp?id= content &style=standard" frameborder="0" scrolling="no" width="500" HEIGHT="350"></iframe>
<iframe ID="eWebEditor1" src="/ewebeditor.asp?id= content &style=standard" frameborder="0" scrolling="no" width="500" HEIGHT="350"></iframe>
更多文章、技術(shù)交流、商務(wù)合作、聯(lián)系博主
微信掃碼或搜索:z360901061

微信掃一掃加我為好友
QQ號(hào)聯(lián)系: 360901061
您的支持是博主寫作最大的動(dòng)力,如果您喜歡我的文章,感覺(jué)我的文章對(duì)您有幫助,請(qǐng)用微信掃描下面二維碼支持博主2元、5元、10元、20元等您想捐的金額吧,狠狠點(diǎn)擊下面給點(diǎn)支持吧,站長(zhǎng)非常感激您!手機(jī)微信長(zhǎng)按不能支付解決辦法:請(qǐng)將微信支付二維碼保存到相冊(cè),切換到微信,然后點(diǎn)擊微信右上角掃一掃功能,選擇支付二維碼完成支付。
【本文對(duì)您有幫助就好】元
