};
} else if(isText(nativeSelection.focusNode) && isText(nativeSelection.anchorNode)) {
anchorElement = canvas.getDocumentElement(nativeSelection.anchorNode);
};
} else if(isText(nativeSelection.focusNode) && isText(nativeSelection.anchorNode)) {
anchorElement = canvas.getDocumentElement(nativeSelection.anchorNode);