|
| 1 | +# Getting Started with Integrating Syncfusion TypeScript DOCX Editor in SharePoint |
| 2 | + |
| 3 | +## Description |
| 4 | + |
| 5 | +This repository provides a complete example of how to integrate the Syncfusion [TypeScript DOCX Editor](https://www.syncfusion.com/docx-editor-sdk/javascript-docx-editor?utm_source=github&utm_medium=listing&utm_campaign=javascript-docx-editor-github-samples) component into a SharePoint Framework (SPFx) web part using the modern Heft-based build toolchain introduced in SPFx v1.22+. SharePoint Framework enables fully client‑side solutions that run seamlessly within SharePoint Online pages. |
| 6 | + |
| 7 | +## Prerequisites |
| 8 | + |
| 9 | +- Use Node Version 22 (supported by SPFx 1.22) |
| 10 | +- A valid Microsoft 365 tenant |
| 11 | + |
| 12 | +## Application Setup & Running the Project (Clone & Run) |
| 13 | + |
| 14 | +1. **Clone the repository to your local machine and navigate to the project folder.** |
| 15 | + ```bash |
| 16 | + git clone <repo> |
| 17 | + cd <repo> |
| 18 | + ``` |
| 19 | + |
| 20 | +2. **Install project dependencies:** |
| 21 | + ```bash |
| 22 | + npm install |
| 23 | + ``` |
| 24 | + |
| 25 | +3. **Update Tenant Domain in `config/serve.json`:** |
| 26 | + ```json |
| 27 | + "initialPage": "https://<your-tenant>.sharepoint.com/_layouts/15/workbench.aspx" |
| 28 | + ``` |
| 29 | + **Note:** Replace `<your-tenant>` with your actual SharePoint Online tenant name. |
| 30 | + |
| 31 | +4. **Trust the SPFx Dev Certificate:** |
| 32 | + ```bash |
| 33 | + heft trust-dev-cert |
| 34 | + ``` |
| 35 | + Or simply trust when prompted during first run. |
| 36 | + |
| 37 | +5. **Start the application:** |
| 38 | + ```bash |
| 39 | + npm start |
| 40 | + ``` |
| 41 | + |
| 42 | +6. **Allow debug scripts?** |
| 43 | + From the browser opened in step 5, allow debug scripts by clicking `Load debug scripts`. |
| 44 | + |
| 45 | +7. **Viewing Syncfusion Schedule Component** |
| 46 | + - Click the + (Add a web part in column one) icon in the browser window (SharePoint). |
| 47 | + - Select 'App' from the options shown. |
| 48 | + - Finally, you can see the Syncfusion Document Editor rendered in SharePoint. |
| 49 | + |
| 50 | +## Output Preview |
| 51 | + |
| 52 | +**Syncfusion TypeScript DOCX Editor** |
| 53 | + |
| 54 | + |
| 55 | + |
| 56 | +*Image illustrating the Syncfusion TypeScript DOCX Editor in SharePoint* |
0 commit comments