Adds function to check if editor is empty #84

Function for checking if the editor is empty.