I think, that kind of feature only needs a very minimal jQuery text editor to have an autoclose features on text editor.