var selection = window.getSelection(),
element1 = this.canvas.getDocumentElement(selection.anchorNode),
element2 = this.canvas.getDocumentElement(selection.focusNode),
var selection = window.getSelection(),
element1 = this.canvas.getDocumentElement(selection.anchorNode),
element2 = this.canvas.getDocumentElement(selection.focusNode),