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

推荐订阅源

Martin Fowler
Martin Fowler
WordPress大学
WordPress大学
S
SegmentFault 最新的问题
罗磊的独立博客
Apple Machine Learning Research
Apple Machine Learning Research
The Cloudflare Blog
L
LangChain Blog
博客园 - 司徒正美
G
Google Developers Blog
博客园 - 【当耐特】
GbyAI
GbyAI
月光博客
月光博客
人人都是产品经理
人人都是产品经理
D
DataBreaches.Net
大猫的无限游戏
大猫的无限游戏
A
About on SuperTechFans
Microsoft Azure Blog
Microsoft Azure Blog
V
Visual Studio Blog
D
Docker
MongoDB | Blog
MongoDB | Blog
Vercel News
Vercel News
Stack Overflow Blog
Stack Overflow Blog
Jina AI
Jina AI
博客园 - 聂微东

博客园 - 阿强.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();