
Locate the element for the insert-paragraph button, and add the following markup after that line. In this step of the tutorial, you'll apply a built-in style to text, apply a custom style to text, and change the font of text. Note that the new paragraph appears above the previous one because the insertParagraph method is inserting at the start of the document's body. In the task pane, choose the Insert Paragraph button.Ĭhoose the Insert Paragraph button again. In Word, choose the Home tab, and then choose the Show Taskpane button in the ribbon to open the add-in task pane.

If your add-in doesn't sideload in the document, manually sideload it by following the instructions in Sideload Office Add-ins in Office on the web manually.

Locate the element and delete all lines that appear after the opening tag and before the closing tag.Īdd the following markup immediately after the opening tag.

This file contains the HTML markup for the task pane. In this step of the tutorial, you'll programmatically test that your add-in supports the user's current version of Word, and then insert a paragraph into the document. The step-by-step instructions within this article provide all of the guidance you'll need to complete this tutorial. You can ignore the next steps guidance that the Yeoman generator provides after the add-in project's been created.
