主頁 > 知識庫 > PHP網(wǎng)頁 Ewebeditor 編輯器嵌入方法

PHP網(wǎng)頁 Ewebeditor 編輯器嵌入方法

熱門標(biāo)簽:服務(wù)器配置 網(wǎng)站文章發(fā)布 智能手機(jī) 美圖手機(jī) 銀行業(yè)務(wù) 呼叫中心市場需求 鐵路電話系統(tǒng) 檢查注冊表項(xiàng)
(1)在 /head> 之前加上下面一段代碼:(得到 ewebeditor 中編輯的內(nèi)容)
script>
function checkForm()
{
document.form1.content .value = window.ewebeditor .getHTML();
************getHTML() 獲得編輯區(qū)內(nèi)容
************ 此處的名字 ewebeditor 要與 iframe 中的 name="ewebeditor" 相同
************content.value 也要與 content 中的 input > 中相對應(yīng)
}
/script>
(2)下面一段代碼是把 ewebeditor 嵌入到網(wǎng)頁中:
tr>
td align="right" width="5%" > 內(nèi)容: /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>
您可能感興趣的文章:
  • 讓Editplus成為強(qiáng)大的PHP編輯器
  • php中常用編輯器推薦
  • php下FCKeditor2.6.5網(wǎng)頁編輯器的使用方法
  • ThinkPHP中FCKeditor編輯器的使用方法
  • ajax php實(shí)現(xiàn)給fckeditor文本編輯器增加圖片刪除功能
  • 針對PHP環(huán)境下Fckeditor編輯器上傳圖片配置詳細(xì)教程
  • phpstorm編輯器亂碼問題解決
  • 推薦5款跨平臺的PHP編輯器
  • php單文件版在線代碼編輯器

標(biāo)簽:河南 上海 長治 紅河 滄州 沈陽 樂山 新疆

巨人網(wǎng)絡(luò)通訊聲明:本文標(biāo)題《PHP網(wǎng)頁 Ewebeditor 編輯器嵌入方法》,本文關(guān)鍵詞  ;如發(fā)現(xiàn)本文內(nèi)容存在版權(quán)問題,煩請?zhí)峁┫嚓P(guān)信息告之我們,我們將及時(shí)溝通與處理。本站內(nèi)容系統(tǒng)采集于網(wǎng)絡(luò),涉及言論、版權(quán)與本站無關(guān)。
  • 相關(guān)文章
  • 收縮
    • 微信客服
    • 微信二維碼
    • 電話咨詢

    • 400-1100-266