1
0
mirror of https://github.com/laurent22/joplin.git synced 2024-12-24 10:27:10 +02:00

Desktop: Fixed HTML export

This commit is contained in:
Laurent Cozic 2019-12-18 10:00:59 +00:00
parent 840cdf5512
commit eabbbba0c7
2 changed files with 11 additions and 7 deletions

View File

@ -385,13 +385,15 @@ class Application extends BaseApplication {
for (let i = 0; i < ioModules.length; i++) {
const module = ioModules[i];
if (module.type === 'exporter') {
exportItems.push({
label: module.fullLabel(),
screens: ['Main'],
click: async () => {
await InteropServiceHelper.export(this.dispatch.bind(this), module);
},
});
if (module.canDoMultiExport !== false) {
exportItems.push({
label: module.fullLabel(),
screens: ['Main'],
click: async () => {
await InteropServiceHelper.export(this.dispatch.bind(this), module);
},
});
}
} else {
for (let j = 0; j < module.sources.length; j++) {
const moduleSource = module.sources[j];

View File

@ -19,6 +19,8 @@ class InteropService {
modules() {
if (this.modules_) return this.modules_;
// - canDoMultiExport: Tells whether the format can package multiple notes into one file. Default: true.
let importModules = [
{
format: 'jex',