function checkform(){document.form1.neirong.value= document.form1.doc_html.values;}</script><object id=doc_html name="doc_html" style="left:0px;top:0px" data="index.html" width=790 height=320 type=text/x-scriptlet viewastext></object><input type="hidden" name="neirong">在TinyEditor的实际应用中,需要注意的是,在提交编辑器内容之前,一定调用instance.post()函数,以确保编辑区域中最新的可视化内容转化为标记文本。请问一下,instance.past()函数该怎么调用?代码该怎么写?在哪个位置插入代码?
2 回答
暮色呼如
TA贡献1853条经验 获得超9个赞
你创建编辑器的时候
var instance = new TINY.editor.edit(....);
在提交表单的时候或者表单验证通过之后
instance.post();
这样就会取到最新更新的值.
侃侃尔雅
TA贡献1801条经验 获得超16个赞
哎,我跟您遇到的问题一样,不知道如何解决,试了好几个都没法用。
这样可以吗?我这边不行
<input type="button" onclick="[color=#FF0000]instance.post();[/color]alert(document.getElementById('input').value)" value="Click"/>
添加回答
举报
0/150
提交
取消
