惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

有赞技术团队
有赞技术团队
美团技术团队
博客园 - 司徒正美
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
阮一峰的网络日志
阮一峰的网络日志
S
SegmentFault 最新的问题
博客园_首页
雷峰网
雷峰网
V
V2EX
The Cloudflare Blog
博客园 - 三生石上(FineUI控件)
量子位
Last Week in AI
Last Week in AI
人人都是产品经理
人人都是产品经理
爱范儿
爱范儿
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
博客园 - 聂微东
V
Visual Studio Blog
Hugging Face - Blog
Hugging Face - Blog
博客园 - 【当耐特】
Jina AI
Jina AI
月光博客
月光博客
L
LangChain Blog

博客园 - 阿强.Net

层的定位问题 转载:需求说明书四要素 .Net开源项目大全发布 DotBBS V1.8.0发布,欢迎下载 Js不间断滚动-上 - 阿强.Net - 博客园 JS不间断滚动-下 - 阿强.Net - 博客园 当表格内容超过预设的长宽后,自动产生滚动条 - 阿强.Net - 博客园 吸铁石网新发布 如何制作透明FLASH - 阿强.Net - 博客园 如何手动卸载SQL Server 2005 实例 设为首页,加入收藏代码 - 阿强.Net - 博客园 利用VSS进行备份和恢复 DotBBSV1.1.0发布了 Sql server系统表 SQL中ntext类型字段的替换 DotBBSV1.0开源Asp.Net论坛系统 DotBBSV1.0发布,欢迎使用 javascript脚本跨站攻击与预防 javascript获取参数 - 阿强.Net - 博客园
js获取CuteEditor的值
阿强.Net · 2008-12-03 · via 博客园 - 阿强.Net
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();