mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-20 23:46:14 -04:00
plugins always return html so use that endpoint
This commit is contained in:
parent
da06ac6fd7
commit
4938c7be38
1 changed files with 1 additions and 1 deletions
|
@ -228,7 +228,7 @@ exports.doImport = function(req, res, padId)
|
||||||
function(callback) {
|
function(callback) {
|
||||||
if(!directDatabaseAccess){
|
if(!directDatabaseAccess){
|
||||||
var fileEnding = path.extname(srcFile).toLowerCase();
|
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){
|
importHtml.setPadHTML(pad, text, function(e){
|
||||||
if(e) apiLogger.warn("Error importing, possibly caused by malformed HTML");
|
if(e) apiLogger.warn("Error importing, possibly caused by malformed HTML");
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue