怎么复制里面的内容,而不是代码。在视图模式下复制之后直接去其他编辑器或word区域粘贴就出来样式了,这个复制其中内容这步该怎么做。我打算在页面下面加个button,单击后就可以 复制内容到剪切板。
解决方案 »
- 问个很小的问题,这个web窗体是怎么样来生成的呀?
- asp.net 水晶报表如何读取数据库里的图片路径
- 当我点击按钮时候让层2盖住在层1上面,在点击按钮让层2隐藏,点击按钮1的时候层2显示盖住曾1
- dropdownlist 小問題
- ASP.NET移动WEB问题?
- 怎么利用ASP.NET DataGrid显示主次关系的数据??
- .bin和.cue 是什么格式,用什么打开的?
- DropDownList没有ReadOnly属性,怎样使起字体不为灰色并有焦点。
- 这样写法可以么?
- 广大网友强烈要求思归大哥指点的问题!
- 大侠有点难啊,Treeview做世系表,
- 关于处理URL的问题~懂HttpHandler进
<script>
//复制到剪贴板
function{
var oEditor = FCKeditorAPI.GetInstance("editor");
document.getElementById("test").value=oEditor.EditorDocument.body.innerText;
textRange = document.getElementById("test").createTextRange();
textRange.execCommand("Copy");
document.getElementById("test").value="";
}
//恢复数据
function huifu() {
textRange = document.getElementById("hui").createTextRange();
textRange.execCommand("Paste");
var oEditor = FCKeditorAPI.GetInstance("editor") ;
oEditor.SetHTML(document.getElementById("hui").value) ;
document.getElementById("hui").value="";
}
//清空数据
function cler(){
var oEditor = FCKeditorAPI.GetInstance("editor") ;
oEditor.SetHTML("") ;
}
</script> <input id="Button2" type="button" name="abc" onclick="huifu()" value="恢复数据"/>
<input id="Button3" type="button" name="abc" onclick="cler()" value="清空数据"/>