http://hi.baidu.com/70zz/blog/item/8c1d8809c1ed04276b60fbf1.html
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();
http://hi.baidu.com/70zz/blog/item/8c1d8809c1ed04276b60fbf1.html
分享到:
相关推荐
CuteEditor6.4网页编辑器及Demo CuteEditor for ASP.NET中文版是建立在Html基础之上,最简单易用、功能最强大的所见即所得Asp.net在线编辑器。 CuteEditor可以帮助Asp.net开发者轻松的对原来文本框(Textarea)中...
最强大的编辑器CuteEditor 6.0.rar最强大的编辑器CuteEditor 6.0.rar最强大的编辑器CuteEditor 6.0.rar最强大的编辑器CuteEditor 6.0.rar
web开发控件,html编辑器 CuteEditor_for_NET6
(1)将CuteEditor、Bin文件夹下的: CuteEditor.dll、CuteEditor.lic(Lic即Licence缩写,授权文件)、CuteEditor.ImageEditor.dll、NetSpell.SpellChecker.dll拷贝到项目的Bin目录下。注:(“.dic”为扩展名的文件...
CuteEditor破解,正常使用,欢迎下载
CuteEditor v 6.6最新版本
CuteEditor一款功能强大的HTML编辑器,包含源码。
CuteEditor在线编辑器 文件直接下载 文件和dll都有 简单方便配置
CuteEditor许可证文件,在代码开发阶段使用CuteEditor为会出问题,但是发布到IIS上时会报错缺少CuteEditor许可证文件,把该文件放入到发布后的bin文件夹中就可以了。
CuteEditor6.0使用详解
cuteEditor 授权文件 用于破解cuteEditor 过期
<br/> 没有打开较慢的Java或ActiveX组件 <br/>100% DHTML, JavaScript ASP.Net code. There are no slow Java or ActiveX components to worry about and everything is handled in the browser! ...
CuteEditor使用详解 非常详细的解说
CuteEditor.dll程序集,第三方控件;
CuteEditor是很强大的网页编辑工具,此为其适用于ASP.NET的版本。
CuteEditor的详细配置,文件中包含一个word的文档,其中有图,可以帮助你很快理解!
CuteEditor的配置