SelectionType
当前选择类型("none"、"text"、"drawing" 或 "slide")。
类型
枚举
值
- "none"
- "text"
- "drawing"
- "slide"
示例
window.Asc.plugin.executeMethod ("GetSelectionType", [], function(type) {
switch (type) {
case "none":
case "drawing":
window.Asc.plugin.executeMethod ("PasteText", [$("#txt_shower")[0].innerText]);
break;
case "text":
window.Asc.plugin.callCommand (function() {
Api.ReplaceTextSmart (Asc.scope.arr);
});
break;
}
});