联系电话:13484956623  QQ:23090754点击这里给我发消息[隐身]  陕ICP备09019916号 

PHP网页 Ewebeditor 编辑器嵌入方法

下载“Ewebeditor”PHP编辑器。
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 嵌入到网页中:
<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>



[本日志由 sz1023 于 2013-03-25 12:28 AM 编辑]
文章来自: 本站原创
引用通告: 查看所有引用 | 我要引用此文章
Tags: PHP 网页 ewebeditor 编辑器 嵌入 方法
相关日志:
评论: 0 | 引用: 0 | 查看次数: 5075
发表评论
昵 称:
密 码: 游客发言不需要密码.
内 容:
验证码: 验证码
选 项:
虽然发表评论不用注册,但是为了保护您的发言权,建议您注册帐号.
字数限制 1000 字 | UBB代码 开启 | [img]标签 关闭