Simplify how we check for resizeEditor. Fixes #237.