GetSelectionType
Returns the type of the current selection.
Parameters:
This method doesn't have any parameters.
Returns:
- Type
-
SelectionType
Example
Copy code
window.Asc.plugin.executeMethod ("GetSelectionType", [], function(sType) {
switch (sType) {
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;
}
});