Finally fixed my editor problems, also added a small function to display word count of the article.