plugins always return html so use that endpoint
This commit is contained in:
parent
da06ac6fd7
commit
4938c7be38
|
@ -228,7 +228,7 @@ exports.doImport = function(req, res, padId)
|
|||
function(callback) {
|
||||
if(!directDatabaseAccess){
|
||||
var fileEnding = path.extname(srcFile).toLowerCase();
|
||||
if (abiword || fileEnding == ".htm" || fileEnding == ".html") {
|
||||
if (importHandledByPlugin || abiword || fileEnding == ".htm" || fileEnding == ".html") {
|
||||
importHtml.setPadHTML(pad, text, function(e){
|
||||
if(e) apiLogger.warn("Error importing, possibly caused by malformed HTML");
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue