Skip to content

Commit 3112c17

Browse files
committed
Document Loaded from GitHub link
1 parent f07ff72 commit 3112c17

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/DocumentEditor.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ function DocumentEditor() {
2121
const [contentControlElementCount, setContentControlElementCount] = useState(0);
2222
let isDragElement = false;
2323
let currentContentControl = null;
24-
const defaultDocument = '';
24+
let defaultDocument = '';
2525
let contentControlList = JSON.parse(localStorage.getItem("contentControlList")) || contentControlData;
2626

2727

@@ -60,14 +60,14 @@ function DocumentEditor() {
6060
}
6161
}
6262

63-
// Convert GitHub Raw document to SFDT and load in Editor.
63+
// Convert GitHub Raw document to SFDT and load in Editor.
6464
const convertDocxToSfdt = async () => {
6565
try {
66-
const docxResponse = await fetch('https://raw.githubusercontent.com/syncfusion/blazor-showcase-document-explorer/master/server/wwwroot/Files/Documents/Giant%20Panda.docx');
66+
const docxResponse = await fetch('https://raw.githubusercontent.com/SyncfusionExamples/Create-Dynamic-Reusable-Forms-with-Ease-Using-Content-Controls-in-Word-Documents/master/public/docs/Customer_Review_Form.docx');
6767
const docxBlob = await docxResponse.blob();
6868

6969
const formData = new FormData();
70-
formData.append('files', docxBlob, 'GiantPanda.docx');
70+
formData.append('files', docxBlob, 'Customer_Review_Form.docx');
7171

7272
const importResponse = await fetch('https://ej2services.syncfusion.com/production/web-services/api/documenteditor/Import', {
7373
method: 'POST',

0 commit comments

Comments
 (0)