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

Desktop: Fixes #3915: Editor toolbar was disabled when importing note from MD file

This commit is contained in:
Laurent Cozic 2020-10-17 11:15:43 +01:00
parent 958e5a80b7
commit 7b3440ac4c

View File

@ -9,6 +9,7 @@ const shim = require('lib/shim').default;
const { extractImageUrls } = require('lib/markdownUtils').default;
const { unique } = require('lib/ArrayUtils');
const { pregQuote } = require('lib/string-utils-common');
const { MarkupToHtml } = require('lib/joplin-renderer');
export default class InteropService_Importer_Md extends InteropService_Importer_Base {
async exec(result:ImportExportResult) {
@ -101,6 +102,7 @@ export default class InteropService_Importer_Md extends InteropService_Importer_
created_time: stat.birthtime.getTime(),
user_updated_time: stat.mtime.getTime(),
user_created_time: stat.birthtime.getTime(),
markup_language: MarkupToHtml.MARKUP_LANGUAGE_MARKDOWN,
};
return Note.save(note, { autoTimestamp: false });