我要实现的是,用户在编写文字的过程中,点击"插入",可是选择一个图片,插入到当前的位置
------解决方案--------------------
<INPUT TYPE= "button " value= "insert " onclick= "insertImg() ">
<div id=ct contentEditable= "true " style= "border:solid 1px black;width:200;height:90;border-style:outset;background:green "> </div>
<SCRIPT LANGUAGE= "JavaScript ">
<!--
function insertImg() {
ct.focus()
ct.document.selection.createRange().pasteHTML( " <img src= 'http://www.csdn.net/Images/logo_csdn.gif '> ");
}
//-->
</SCRIPT>