Handle errors when parsing contents from both editors and prevent switching to another section when there is an error