国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 網站 > 軟件應用 > 正文

PHP網頁 Ewebeditor 編輯器嵌入方法

2024-09-06 19:16:36
字體:
來源:轉載
供稿:網友
(1)在 </head> 之前加上下面一段代碼:(得到 ewebeditor 中編輯的內容)
<script>
function checkForm()
{
document.form1.content .value = window.ewebeditor .getHTML();
************getHTML() 獲得編輯區內容
************ 此處的名字 ewebeditor 要與 iframe 中的 name="ewebeditor" 相同
************content.value 也要與 content 中的 <input > 中相對應
}
</script>
(2)下面一段代碼是把 ewebeditor 嵌入到網頁中:
<tr>
<td align="right" width="5%" > 內容: </td>
<td width="95%">
<input type="hidden" name="content" id="content" value ="">
**********id="content" 中的 content 要與 <iframe> 中的 id=content 相同!
<iframe id="ewebeditor" name="ewebeditor" src="ewebeditor/ewebeditor.php?id=content " frameborder="0" scrolling="no" width="100%" HEIGHT="450">
</iframe>
</td>
</tr>
發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 新宁县| 温州市| 纳雍县| 武清区| 祁东县| 祁连县| 蓬安县| 长兴县| 南江县| 伊川县| 阳春市| 竹溪县| 如东县| 惠安县| 桐城市| 巴彦淖尔市| 东乡族自治县| 久治县| 栾川县| 兴海县| 五原县| 夏河县| 新绛县| 韶关市| 宕昌县| 牙克石市| 镇远县| 新巴尔虎右旗| 临武县| 梁平县| 兴文县| 岗巴县| 罗江县| 海门市| 崇信县| 林口县| 阿巴嘎旗| 晴隆县| 屏边| 诏安县| 沅江市|