mirror of
https://github.com/ether/etherpad-lite.git
synced 2026-05-08 13:46:10 +02:00
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…
x
Reference in New Issue
Block a user