on each user modification your method will be called and gather+process all the text inside the editor.. Try your modification with huge file.