`
liuyanhui
  • 浏览: 37642 次
  • 性别: Icon_minigender_1
  • 来自: 沈阳
最近访客 更多访客>>
社区版块
存档分类
最新评论

js获取CuteEditor的值

阅读更多
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
分享到:
评论

相关推荐

    CuteEditor

    可以使用CuteEditor提供的API来获取纯文本或HTML内容。 7. **图片和文件管理**:CuteEditor支持图片和文件上传。你需要配置好上传路径,并确保服务器有权限写入这些文件。同时,为了安全考虑,需要对上传的文件进行...

    CuteEditor的详细配置+例子

    这通常包括`CuteEditor.js`主文件以及配套的皮肤和语言文件。 2. **初始化编辑器**:在HTML页面中,你需要为编辑器预留一个容器,然后通过JavaScript代码来初始化这个编辑器。例如: ```html ...

    CuteEditor_for_NET6

    CuteEditor的核心特性包括: 1. **所见即所得(WYSIWYG)编辑**:用户在浏览器中可以直接看到编辑内容的真实效果,如同使用Word一样操作,提升了用户体验。 2. **多语言支持**:CuteEditor内置了对多种语言的支持...

    CuteEditor6.4网页编辑器及Demo

    CuteEditor6.4网页编辑器及Demo CuteEditor for ASP.NET中文版是建立在Html基础之上,最简单易用、功能最强大的所见即所得Asp.net在线编辑器。 CuteEditor可以帮助Asp.net开发者轻松的对原来文本框(Textarea)中...

    最强大的编辑器CuteEditor 6.0.rar

    此外,对于高级功能的使用,可能还需要JavaScript编程经验,因为很多自定义和扩展功能是通过编写JavaScript代码实现的。 总的来说,CuteEditor 6.0是一款强大而灵活的Web编辑器,能够极大地提升Web内容创作的便捷性...

    CuteEditor一款功能强大的HTML编辑器

    CuteEditor因其强大的功能和易用性而在开发者和内容创作者之间颇受欢迎。 首先,CuteEditor支持源码编辑模式。这意味着用户可以切换到源代码视图,直接编辑HTML,这对于熟悉HTML语法的高级用户非常有用,他们可以...

    CuteEditor编译器的用法讲解以及例子

    &lt;script type="text/javascript" src="path/to/cuteeditor.js"&gt; ``` 然后,创建编辑器实例。在HTML中选择一个元素(如),并使用CuteEditor的初始化函数来替换该元素。例如: ```html &lt;textarea id="editor"&gt;&lt;/...

    CuteEditor v 6.6最新版本

    CuteEditor是一款强大的网页文本编辑器,主要用于网页内容的创建和编辑。它的最新版本是v6.6,这个版本可能包含了一些新特性、优化和修复了之前版本的问题,以提供更好的用户体验和更稳定的性能。 在提供的文件名...

    CuteEditor.dll.rar

    在使用CuteEditor.dll时,开发人员需要将其正确引用到项目中,通过编程调用其提供的方法和属性来初始化编辑器、设置初始内容、获取编辑后的内容等。通常,这涉及到.NET Framework环境下的ASP.NET或者WinForms开发,...

    CuteEditor使用详解

    CuteEditor是一款强大的在线文本编辑器,尤其适合用于新闻发布系统和博客等应用场景。它提供了类似Word的文字编辑体验,支持图片上传、文件下载以及拼写检查等功能,极大地提高了用户的内容创作效率。 首先,为了...

    CuteEditor web在线编辑器

    CuteEditor是一款专门为ASP.NET平台设计的网页在线编辑器,是网站开发人员在构建文章发布系统时常用的一款工具。它提供了丰富的文本编辑功能,使得非技术用户也能方便地创建、编辑和格式化网页内容,极大地提高了...

    CuteEditor 6.4

    (1)将CuteEditor、Bin文件夹下的: CuteEditor.dll、CuteEditor.lic(Lic即Licence缩写,授权文件)、CuteEditor.ImageEditor.dll、NetSpell.SpellChecker.dll拷贝到项目的Bin目录下。注:(“.dic”为扩展名的文件...

    CuteEditor_ 破解版

    CuteEditor破解,正常使用,欢迎下载

    CuteEditor6

    在网页的JavaScript部分,需要调用CuteEditor的初始化函数,并传入配置参数,如编辑器的ID、宽度、高度等。例如: ```javascript var editor = CuteEditor.Create(document.getElementById('editor'), { width: '...

    CuteEditor for ASP.NET

    CuteEditor是一款功能丰富的网页编辑器,专为ASP.NET平台设计。它允许用户在Web应用程序中创建、编辑和格式化HTML内容,就像在桌面文本编辑器中操作一样。这款编辑器以其用户友好的界面和广泛的自定义选项而受到...

    cuteEditor 最新版6.6注册机

    CuteEditor是一款功能强大的网页文本...在使用时,应遵守版权法规,通过合法途径获取和使用软件,以便获得最佳的使用体验和支持。对于开发者来说,深入理解CuteEditor的API和配置机制,能够提升项目开发的效率和质量。

    CuteEditor许可证文件

    CuteEditor许可证文件,在代码开发阶段使用CuteEditor为会出问题,但是发布到IIS上时会报错缺少CuteEditor许可证文件,把该文件放入到发布后的bin文件夹中就可以了。

    CuteEditor6.0使用详解

    CuteEditor6.0使用详解

Global site tag (gtag.js) - Google Analytics