| title | Rubric grader task pane add-in for OneNote on the web | |||||||
|---|---|---|---|---|---|---|---|---|
| page_type | sample | |||||||
| urlFragment | onenote-add-in-rubric-grader | |||||||
| products |
|
|||||||
| languages |
|
|||||||
| extensions |
|
|||||||
| description | Explore the basics of OneNote add-ins with a sample tool for teachers. |
The Rubric Grader sample shows you how to use the OneNote JavaScript API in a OneNote task pane add-in. The add-in gets page content, adds an outline to the page, and opens a different page.
The add-in helps teachers grade writing assignments based on a grading rubric. It provides a standard template for adding feedback. Please note that the add-in doesn't evaluate the content itself.
- Interact with OneNote through a custom task pane
- OneNote on the web
- A Microsoft 365 tenant
| Solution | Author(s) |
|---|---|
| Rubric grader task pane add-in for OneNote on the web | Microsoft |
| Version | Date | Comments |
|---|---|---|
| 1.0 | 6-17-2025 | Initial release |
You can run this sample in OneNote in a browser. The add-in web files are served from this repo on GitHub.
- Download the manifest.xml file from this sample to a folder on your computer.
- Open Office on the web.
- Under Apps, choose OneNote.
- Open a notebook that contains a couple of pages. Make sure at least one page has a paragraph of content.
- On the Insert tab, choose Office Add-ins.
- In the Office Add-ins dialog, select MY ADD-INS and choose Upload My Add-in.
- Browse to the add-in manifest file, and then select Upload.
- If the add-in loaded successfully, you'll see a Show Taskpane button on the Home tab.
Once the add-in is loaded use the following steps to try out the functionality.
If you prefer to configure a web server and host the add-in's web files from your computer, use the following steps.
-
Install a recent version of npm and Node.js. To verify if you've already installed these tools, run the commands
node -vandnpm -vin your terminal. -
You need http-server to run the local web server. If you haven't installed this yet, you can do this with the following command.
npm install --global http-server -
You need Office-Addin-dev-certs to generate self-signed certificates to run the local web server. If you haven't installed this yet, you can do this with the following command.
npm install --global office-addin-dev-certs -
Clone or download this sample to a folder on your computer, then go to that folder in a console or terminal window.
-
Run the following command to generate a self-signed certificate to use for the web server.
npx office-addin-dev-certs installThis command displays the folder location where it generated the certificate files.
-
Go to the folder location where the certificate files were generated, then copy the localhost.crt and localhost.key files to the cloned or downloaded sample folder.
-
Run the following command.
http-server -S -C localhost.crt -K localhost.key --cors . -p 3000The http-server will run and host the current folder's files on localhost:3000.
-
Now that your localhost web server is running, you can sideload the manifest-localhost.xml file provided in the sample folder. Using this file, follow the steps in Run the sample to sideload and run the add-in.
- Did you experience any problems with the sample? Create an issue and we'll help you out.
- We'd love to get your feedback about this sample. Go to our Office samples survey to give feedback and suggest improvements.
- For general questions about developing Office Add-ins, go to Microsoft Q&A using the office-js-dev tag.
Copyright (c) 2025 Microsoft Corporation. All rights reserved.
This project has adopted the Microsoft Open Source Code of Conduct. For more information, see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.
