从javascript设置Ajax HTMLEditor的内容 [英] Set content for Ajax HTMLEditor from javascript

查看:67
本文介绍了从javascript设置Ajax HTMLEditor的内容的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我的应用程序中有ajax html编辑器,我需要从javascript更新该编辑器的内容,任何人都可以帮助我解决此问题..

Hi,
I have ajax html editor in my application, i need to update the content of that editor from javascript, any one help me in this issue ..

推荐答案

<script type="text/javascript">
//considering the editor is loaded.
var editorControl =


get("%> ; ).control; //1.设置内容: editorContorl.set_content(样本内容"); //2.获取内容: var content = editorContorl.get_content(); < /script >
get("<%=editor.ClientID%>").control; //1. For setting content: editorContorl.set_content("Sample Content"); //2. For getting content: var content = editorContorl.get_content(); </script>


这篇关于从javascript设置Ajax HTMLEditor的内容的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆