Expandable Text Box

Any ideas of how to get this to work with the default mode of “edit”?