Fix doxument content when the editor has no selections