Improved the external editor integration