Skip to content

Just using front-end to convert docx to html in two situations, and display the result. Based on the Mammoth.js, the example can convert the file which is on the remote server, or which just finished upload.

Notifications You must be signed in to change notification settings

GiorgioPeng/previewDocxAtFrontEnd

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

用於 docx 類型文件預覽

Using to preview the files whose types are docx

使用遠程時候警惕跨域問題

When using to preview the remote files, please be careful of the CORS.

  • 如果是上傳文件預覽,直接點上傳就好

If you want to preview the docx file after you have uploaded the file, just uploading the file.

  • 如果是遠程預覽,請在輸入框中輸入 docx 文件地址,失去焦點後會自動轉化

If you want to preview a remote docx file, please input the url of the docx file in the input dialog, after losing focus, the remote file can be converted.

About

Just using front-end to convert docx to html in two situations, and display the result. Based on the Mammoth.js, the example can convert the file which is on the remote server, or which just finished upload.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published