The text editor automatically closes when typing is stopped. The text editor must remain stable

The text editor automatically closes when typing is stopped. The text editor must remain stable.