Fix two issues with the ACE editor (see #7284)