js获取CuteEditor的值
var editwin = editor1.GetWindow();

Getting the active editor document

In order to find the active editor document, you'd write:

// get the active editor document

var editdoc = editor1.GetDocument();

Getting the active editor selection

In order to find the active editor selection, you'd write:

// get the active editor selection

var sel = editor1.GetSelection();
Method Description
getHTML()

This method is used for retrieving the content of Cute Editor as HTML.

Example:

// get the cute editor instance
var editor1 = document.getElementById('<% = Editor1.ClientID%>');

// retrieving the content of Cute Editor as HTML
var content = editor1.getHTML();
alert(content );

SetHTML() This method is used for setting the content of Cute Editor.

Example:

// get the cute editor instance
var editor1 = document.getElementById('<% = Editor1.ClientID%>');

// setting the content of Cute Editor
editor1.setHTML("Hello World");

PasteHTML()

This method is used for pasting the specified HTML into a range within a editor document. If anything is selected, the selection is replaced with the new HTML and text.

Example:

// get the cute editor instance
var editor1 = document.getElementById('<% = Editor1.ClientID%>');

// pasting the specified HTML into a range within a editor document
editor1.pasteHTML("Hello World");

FocusDocument() This method is used for setting input focus to Cute Editor

Example:

// get the cute editor instance
var editor1 = document.getElementById('<% = Editor1.ClientID%>');

// setting input focus to Cute Editor
editor1.FocusDocument();

找的好辛苦哦...真郁闷..终于死出来了

转载于:https://www.cnblogs.com/yssoft/archive/2009/04/30/1446884.html

js获取CuteEditor的值相关推荐

  1. php 获取css值,如何通过JS获取CSS属性值

    JS获取CSS属性 #f{background-color:#FF0000;} var o = document.getElementById('f'); document.write(o.style ...

  2. js获取classname值_利用js获取元素class值的两种方法

    我们有时为了达到某种效果,需要以元素的class值为条件做判断. 我们如何利用JavaScript获取元素class的值?我们先看下面代码: x=document.getElementsByTagNa ...

  3. js获取css属性值的方法

    js操作获取dom元素的样式属性值 obj.style: 它只能够获取通过style设置的元素CSS属性值: 在html标签内通过style设置行内属性 通过.dom.style.width=&quo ...

  4. 前端JS获取ModelMap的值 2020-09-03

    问题描述: 前端获取ModelMap的值 Controller: @GetMapping("/turnDispatch/{workNo}")public String turnDi ...

  5. JS 获取指定 Cookie 值

    我们知道在 JS 中,只能通过 document.cookie 获取到当前网页的 Cookie,返回的是以 ; 隔开的 Cookie 键值对字符串.在日常开发中,可以使用 js-cookie 包来操作 ...

  6. 86 js获取元素样式值

    文章目录 1.样式的种类 2.元素.style.属性名 2.window.getComputedStyle() 3.currentStyle 4.兼容写法 5.获取元素样式值的方法 前面学习了如何设置 ...

  7. JS 获取标签属性值的方法

    1.取值 方法一 自定义属性必须用getAttribute()方法 var iframeSrcAttr = document.getElementById("importJsp") ...

  8. js获取php单选按钮值,js如何获取radio单选框选中的值

    js中一般使用遍历的方法获取radio被选中的值,遍历判断每个Radio是否被选中,如果是,再取其值. 1 2 3 function usubmit(action){ var radionum = d ...

  9. js获取display的值_JS实现多行溢出省略号思路

    说起多行溢出省略号,用CSS实现最简单 .one-line { display: -webkit-box !important; overflow: hidden; text-overflow: el ...

最新文章

  1. XamarinAndroid组件教程RecylerView适配器设置动画示例
  2. 删除json中的指定元素_DeleteFile,VBA中借助Windows Scripting Host删除指定文件
  3. URAL 1033 Labyrinth
  4. 净水器怎么放_家中安装净水器后,水却更脏了!这几个常识性问题你不得不知道...
  5. java垃圾回收机制优化_JVM性能优化--Java的垃圾回收机制
  6. java 同步块的锁是什么,java – 同步块 – 锁定多个对象
  7. 命名管道实现进程的信息传递【mkfifo函数、open函数】
  8. python3 上传文件到目标机器_Python3 +服务器搭建私人云盘,再也不怕限速了
  9. Linux 进程后台运行
  10. 尚硅谷为什么免费开放资源_什么是开放游戏? 新资源
  11. 【转】使用AIDL实现进程间的通信之复杂类型传递
  12. 11. Swoole 与 ThinkPHP
  13. 《深度学习-改善深层神经网络》-第二周-优化算法-Andrew Ng
  14. 社区医疗管理系统方案/案列/APP/软件/小程序/网站
  15. 哈理工oj 1006 River Hopscotch
  16. android logo颜色渐变,华为Logo悄然换新:去掉渐变色,更加扁平化
  17. 目标检测的名词概念(持续记录中.....)
  18. 我的android足迹
  19. 双开乃至多开电脑微信的简单方法
  20. java sftp命令_linux下如何使用sftp命令

热门文章

  1. vim“用sudo写”技巧如何工作?
  2. JavaScript中的“ new”关键字是什么?
  3. excel 单元格文本链接方法
  4. listctrl 的使用技巧
  5. grafana计算不同时间的差值_大数据时代!如何基于Spark Streaming构建实时计算平台...
  6. ajax send上传出错,AJAX + FormData 上传文件失败?
  7. 找出数组的最大公约数
  8. JavaScript 面试总结
  9. docker下搭建JupyterNotebook远程登录
  10. zlib 加密 java_JAVA自带Zlib+base64位压缩加密和解压解密