Home Page
|
Opensoft Websites
|
OSDN
|
Demos
电信线路
|
联通/网通线路
VisualEditor
这是一个封装了基础功能API的文本框,公共API中提供的方法如下:
// 对当前所选内容执行指定的命令。
VisualEditor.prototype.execCommand = function(commandName, middle, commandValue) { };
// 确定当前所选内容的指定状态。
VisualEditor.prototype.queryCommandState = function(commandName) { };
// 返回当前所选内容的指定状态的值。
VisualEditor.prototype.queryCommandValue = function(commandName) { };
// 执行撤销。
VisualEditor.prototype.execRedo = function() { };
// 返回一个标识是否允许撤销的布尔值。
VisualEditor.prototype.canRedo = function() { };
// 执行重复。
VisualEditor.prototype.execUndo = function() { };
// 返回一个标识是否允许重复的布尔值。
VisualEditor.prototype.canUndo = function() { };
// 存储当前的值。
VisualEditor.prototype.store = function() { };
// 恢复控件的值。
VisualEditor.prototype.restore = function() { };
// 应用指定的样式。
VisualEditor.prototype.applyStylesheet = function(url) { };
// 查找文本。
VisualEditor.prototype.findText = function(text, backward, matchCase, wholeWords) { };
// 插入 HTML。
VisualEditor.prototype.insertHTML = function(html) { };
// 插入 HTML
VisualEditor.prototype.insertNode = function(node) { };
// 获取当前选中内容的父节点。
VisualEditor.prototype.getParentElement = function() { };
// 在当前选中内容的父节点中查找指定名称的节点。
VisualEditor.prototype.getNearest = function(tagName) { };
// 选中指定节点的内容。
VisualEditor.prototype.selectNodeContents = function(node) { };
// 显示控件。
VisualEditor.prototype.show = function() { };
// 隐藏控件。
VisualEditor.prototype.hide = function() { };
// 获取或设置控件的值。
VisualEditor.prototype.value = function(value) { };
Copyright © 2005 - 2008 Opensoft Corporation. All rights reserved.