发表文章时自动保存到剪贴板



[Ctrl+A 全选 注:如需引入外部Js需刷新才能执行]

eWebEditor调用方法
复制代码 代码如下:
<input type="hidden" value="" name="NewsContent" >
<iframe name="eWebEditor" ID="eWebEditor" src="eWebEditor/eWebEditor.asp?Id=NewsContent" frameborder="0" scrolling="no" width="100%" HEIGHT="100%"></iframe>
<script type="text/javascript">
function submitcontent() {
window.clipboardData.setData('Text',frames.eWebEditor.document.body.innerHTML);
}
</script>
<input type="submit" onclick="submitcontent();" value="确 定">


« 
» 
快速导航

Copyright © 2016 phpStudy | 豫ICP备2021030365号-3