Class baidu.editor.dom.Selection

baidu.editor.dom.Selection Selection类

Method
Method Attributes Method Name and Description
<static>  
缓存当前选区的range和选区的开始节点
<static>  
清空缓存
<static>  
获得ieRange
<static>  
获取原生seleciton对象
<static>  
获取选区对应的Range
<static>  
获取开始元素,用于状态反射
<static>  
得到选区中的文本
Method Detail
<static> baidu.editor.dom.Selection.cache()
缓存当前选区的range和选区的开始节点

<static> baidu.editor.dom.Selection.clear()
清空缓存

<static> {ieRange} baidu.editor.dom.Selection.getIERange()
获得ieRange
Returns:
{ieRange} 返回ie原生的Range

<static> {Selection} baidu.editor.dom.Selection.getNative()
获取原生seleciton对象
Returns:
{Selection} 获得selection对象

<static> {baidu.editor.dom.Range} baidu.editor.dom.Selection.getRange()
获取选区对应的Range
Returns:
{baidu.editor.dom.Range} 得到Range对象

<static> {Element} baidu.editor.dom.Selection.getStart()
获取开始元素,用于状态反射
Returns:
{Element} 获得开始元素

<static> {String} baidu.editor.dom.Selection.getText()
得到选区中的文本
Returns:
{String} 选区中包含的文本

Documentation generated by JsDoc Toolkit 2.3.2 on Fri Sep 02 2011 17:22:32 GMT+0800 (CST)