Open docxf format
This commit is contained in:
parent
a160afb03f
commit
9c3b52493e
|
@ -421,7 +421,7 @@
|
||||||
|
|
||||||
if (typeof _config.document.fileType === 'string' && _config.document.fileType != '') {
|
if (typeof _config.document.fileType === 'string' && _config.document.fileType != '') {
|
||||||
_config.document.fileType = _config.document.fileType.toLowerCase();
|
_config.document.fileType = _config.document.fileType.toLowerCase();
|
||||||
var type = /^(?:(xls|xlsx|ods|csv|xlst|xlsy|gsheet|xlsm|xlt|xltm|xltx|fods|ots)|(pps|ppsx|ppt|pptx|odp|pptt|ppty|gslides|pot|potm|potx|ppsm|pptm|fodp|otp)|(doc|docx|doct|odt|gdoc|txt|rtf|pdf|mht|htm|html|epub|djvu|xps|oxps|docm|dot|dotm|dotx|fodt|ott|fb2|xml|oform))$/
|
var type = /^(?:(xls|xlsx|ods|csv|xlst|xlsy|gsheet|xlsm|xlt|xltm|xltx|fods|ots)|(pps|ppsx|ppt|pptx|odp|pptt|ppty|gslides|pot|potm|potx|ppsm|pptm|fodp|otp)|(doc|docx|doct|odt|gdoc|txt|rtf|pdf|mht|htm|html|epub|djvu|xps|oxps|docm|dot|dotm|dotx|fodt|ott|fb2|xml|oform|docxf))$/
|
||||||
.exec(_config.document.fileType);
|
.exec(_config.document.fileType);
|
||||||
if (!type) {
|
if (!type) {
|
||||||
window.alert("The \"document.fileType\" parameter for the config object is invalid. Please correct it.");
|
window.alert("The \"document.fileType\" parameter for the config object is invalid. Please correct it.");
|
||||||
|
|
Loading…
Reference in a new issue