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

推荐订阅源

阮一峰的网络日志
阮一峰的网络日志
D
Darknet – Hacking Tools, Hacker News & Cyber Security
S
Schneier on Security
The Last Watchdog
The Last Watchdog
Cyberwarzone
Cyberwarzone
S
Securelist
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
C
Cyber Attacks, Cyber Crime and Cyber Security
L
Lohrmann on Cybersecurity
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
博客园 - 司徒正美
The Cloudflare Blog
V
V2EX
博客园_首页
博客园 - 聂微东
Vercel News
Vercel News
人人都是产品经理
人人都是产品经理
G
GRAHAM CLULEY
T
Tenable Blog
Last Week in AI
Last Week in AI
Y
Y Combinator Blog
L
LINUX DO - 最新话题
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
SecWiki News
SecWiki News
博客园 - 三生石上(FineUI控件)
S
Secure Thoughts
N
News | PayPal Newsroom
T
The Blog of Author Tim Ferriss
The GitHub Blog
The GitHub Blog
T
Troy Hunt's Blog
博客园 - 【当耐特】
Forbes - Security
Forbes - Security
H
Hacker News: Front Page
A
About on SuperTechFans
B
Blog RSS Feed
Engineering at Meta
Engineering at Meta
MongoDB | Blog
MongoDB | Blog
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
罗磊的独立博客
D
DataBreaches.Net
P
Privacy & Cybersecurity Law Blog
Schneier on Security
Schneier on Security
Application and Cybersecurity Blog
Application and Cybersecurity Blog
Google DeepMind News
Google DeepMind News
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
Jina AI
Jina AI
D
Docker
P
Proofpoint News Feed

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