File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ function DocumentEditor() {
21
21
const [ contentControlElementCount , setContentControlElementCount ] = useState ( 0 ) ;
22
22
let isDragElement = false ;
23
23
let currentContentControl = null ;
24
- const defaultDocument = '' ;
24
+ let defaultDocument = '' ;
25
25
let contentControlList = JSON . parse ( localStorage . getItem ( "contentControlList" ) ) || contentControlData ;
26
26
27
27
@@ -60,14 +60,14 @@ function DocumentEditor() {
60
60
}
61
61
}
62
62
63
- // Convert GitHub Raw document to SFDT and load in Editor.
63
+ // Convert GitHub Raw document to SFDT and load in Editor.
64
64
const convertDocxToSfdt = async ( ) => {
65
65
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' ) ;
67
67
const docxBlob = await docxResponse . blob ( ) ;
68
68
69
69
const formData = new FormData ( ) ;
70
- formData . append ( 'files' , docxBlob , 'GiantPanda .docx' ) ;
70
+ formData . append ( 'files' , docxBlob , 'Customer_Review_Form .docx' ) ;
71
71
72
72
const importResponse = await fetch ( 'https://ej2services.syncfusion.com/production/web-services/api/documenteditor/Import' , {
73
73
method : 'POST' ,
You can’t perform that action at this time.
0 commit comments