#4939: Works in firefox.
#4939: IE works. Cancel animations when switching modes.
Merge pull request #5155 from openscholar/4939-browser_compat

Browser compatibility for wysiwyg expansion