Updated rich text editor. Cleaned up folder structure and move editor to lib folder