首页 »Javascript教程 » js代码:一个符号插入器 中用到的js代码 »正文js代码:一个符号插入器 中用到的js代码来源: 发布时间:星期六, 2008年12月27日 浏览:62次 评论:0
/**
* @author tin555 */ function HTML(html) { ContentEdit.value = html; eWebEditor.document.designMode="On"; eWebEditor.document.open; eWebEditor.document.write(html); eWebEditor.document.body.contentEditable="true"; eWebEditor.document.execCommand("2D-Position",true,true); eWebEditor.document.execCommand("MultipleSelection", true, true); eWebEditor.document.execCommand("LiveResize", true, true); eWebEditor.document.close; eWebEditor.document.body.onpaste = _disibledevent="?MsoNormal"?/gi ; ( re.test(sHTML)){ ( confirm("你要粘贴内容好象是从Word中拷出来是否要先清除Word格式再粘贴?") ){ cleanAndPaste( sHTML ) ; false ; } } } 0
相关文章读者评论发表评论 |