专注于互联网--专注于架构

最新标签
网站地图
文章索引
Rss订阅

首页 »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

相关文章

读者评论

发表评论

  • 昵称:
  • 内容: