<form enctype="multipart/form-data" name="form1" id="form1" method="post">
<input type="hidden" name="edithtml" id="edithtml" value="1" ></input>
<textarea name='imghtml' style='width:100%;height:250px;'><?php echo $imgHtml; ?></textarea>

            <input type="button" name="imgok" id="imgok" onclick='InsertHtml()' value=" 插入到编辑器  " style="height:24px" class="binput" />
 </form>
var oEditor = window.parent.InnerDialogLoaded() ;
var oDOM = oEditor.FCK.EditorDocument ;
var FCK = oEditor.FCK;
var picnum = 1;
var iimghtml = FCK.GetXHTML(true);
function InsertHtml()
{       
var inhtml=document.form1.imghtml.value;
$(iimghtml).appendTo("#edithtml");
//alert($(iimghtml));
//alert(inhtml);
}