Add autoresizing to editor