Editor : add doc and test for `clearSelection`