Update editor-selection.js

fix IE error