You've already forked joplin
mirror of
https://github.com/laurent22/joplin.git
synced 2025-11-29 22:48:10 +02:00
Clipper: Download images and convert them to resources
This commit is contained in:
@@ -6,7 +6,7 @@ const { time } = require('lib/time-utils.js');
|
||||
const { sprintf } = require('sprintf-js');
|
||||
const { _ } = require('lib/locale.js');
|
||||
const moment = require('moment');
|
||||
const { markdownUtils } = require('lib/markdown-utils.js');
|
||||
const markdownUtils = require('lib/markdownUtils');
|
||||
|
||||
class BaseItem extends BaseModel {
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@ const pathUtils = require('lib/path-utils.js');
|
||||
const { mime } = require('lib/mime-utils.js');
|
||||
const { filename } = require('lib/path-utils.js');
|
||||
const { FsDriverDummy } = require('lib/fs-driver-dummy.js');
|
||||
const { markdownUtils } = require('lib/markdown-utils.js');
|
||||
const markdownUtils = require('lib/markdownUtils');
|
||||
const JoplinError = require('lib/JoplinError');
|
||||
|
||||
class Resource extends BaseItem {
|
||||
@@ -135,6 +135,10 @@ class Resource extends BaseItem {
|
||||
return lines.join('');
|
||||
}
|
||||
|
||||
static internalUrl(resource) {
|
||||
return ':/' + resource.id;
|
||||
}
|
||||
|
||||
static pathToId(path) {
|
||||
return filename(path);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user