improve editor usability for pattern bodies