
<div class="main">
    <table border=0 cellpadding=0 cellspacing=0 align="center" class="tb_form">
        <tr>
            <td>
                <textarea name="Content" rows="2" cols="20" id="Content" style="width:100%;height:400px;"></textarea>
                <script>
        KindEditor.ready(function(K) {
                window.editor = K.create('#Content',
                    {
                      uploadJson :kindeditor_uploadJson,
                      fileManagerJson :kindeditor_fileManagerJson,
                      allowFileManager :true,
                      items :NormalEditor,
                      newlineTag:"br",
                      filterMode :false,
                      extraFileUploadParams:{siteid:'1',table:'pa_custompage',field:'content',username:'admin'},
                      afterBlur:function(){this.sync();}
                    }
                );
            var p_obj=parent.document.getElementById("Content");
            editor.html(p_obj.value);
        });
                </script>
            </td>
        </tr>
    </table>
    
    <div class="postarea text-center">
        <span class="help-block"></span>
        <button type="button" class="btn btn-primary btn-sm" onclick="postoverbackfun()">确定</button>
        <button type="button" class="btn btn-default btn-sm ui-closeDialog">关闭</button>
    </div>
</div>
<script type="text/javascript">
    function postoverbackfun() {
        var objid = Request("objid");
        var p_obj = parent.document.getElementById(objid);
        if (p_obj == null) {
            alert("objid没有赋值");
        }
        p_obj.value = editor.html();
        CloseDialog();
    }

</script>