editor: fix splitting text when its parent contains comments