turning draft-js file into ts file, and improved some functions
a rich text editor that builded by draft-ts