Fixed: clipboard button state doesn't change if selection started inside of editor and ended in outer document.
Fixed: selectionChange isn't fired when selection starts inside of editor and ends out of if.