Fixed passing selection as text with IE in dialogs ref.js and category.js.