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() {
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' ,
You can’t perform that action at this time.
0 commit comments