Fix bug with toggling contenteditable and text in the same render

This is kinda ugly.