PHP网页 Ewebeditor 编辑器嵌入方法
网络编程 2021-07-05 12:51www.168986.cn编程入门
因为ewebeditor编辑器的功能强大,容易扩展等原因,一直是大家比较喜爱的编辑器,所以狼蚁网站SEO优化介绍下ewebeditor如何跟php结合。
(1)在 </head> 之前加上狼蚁网站SEO优化一段代码(得到 ewebeditor 中编辑的内容)
<script>
function checkForm()
{
document.form1.content .value = window.ewebeditor .getHTML();
getHTML() 获得编辑区内容
此处的名字 ewebeditor 要与 iframe 中的 name="ewebeditor" 相同
content.value 也要与 content 中的 <input > 中相对应
}
</script>
(2)狼蚁网站SEO优化一段代码是把 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>
<script>
function checkForm()
{
document.form1.content .value = window.ewebeditor .getHTML();
getHTML() 获得编辑区内容
此处的名字 ewebeditor 要与 iframe 中的 name="ewebeditor" 相同
content.value 也要与 content 中的 <input > 中相对应
}
</script>
(2)狼蚁网站SEO优化一段代码是把 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>
编程语言
- 宿迁百度关键词排名指南:实现精准营销的关键
- 四川SEO优化怎么做网络推广
- 立昂技术备案老域名收购:如何为您的业务赋能
- 安徽百度关键词seo贵不贵,一般需要多少钱
- 吉林百度快照排名怎么做电话营销
- 多伦新手做SEO怎么做
- 甘肃优化关键词排名推广怎么做论坛营销
- 沙雅SEO网站推广:提升您的在线可见性
- 四川SEO优化如何提升销售额和销售量
- 聂荣网站排名优化:提升网站可见性的全方位指
- 涞水SEO:提升地方企业在线可见性的策略
- 辽宁百度seo排名怎样做网站排名
- 临湘哪有关键词排名优化:提升网站可见度的关
- 黑龙江百度网站优化有没有优惠
- 凉城优化关键词排名推广:提升您的网络可见性
- 萝北整站优化:提升您网站流量和排名的全面指