While in header/footer mode (when the dotted lines are visible), you cannot edit the main text. You can go back to editing the main text by selecting the Close Header and Footer option on the right side of the ribbon. The information in the header or footer is repeated in every header or footer in the document.