mirror of
https://github.com/zadam/trilium.git
synced 2025-06-06 18:08:33 +02:00
clipper now creates notes with image attachments instead of image notes
This commit is contained in:
parent
00eaa16985
commit
c257bc07a8
@ -11,7 +11,6 @@ const ws = require('../../services/ws');
|
|||||||
const log = require('../../services/log');
|
const log = require('../../services/log');
|
||||||
const utils = require('../../services/utils');
|
const utils = require('../../services/utils');
|
||||||
const path = require('path');
|
const path = require('path');
|
||||||
const BAttribute = require('../../becca/entities/battribute');
|
|
||||||
const htmlSanitizer = require('../../services/html_sanitizer');
|
const htmlSanitizer = require('../../services/html_sanitizer');
|
||||||
const {formatAttrForSearch} = require("../../services/attribute_formatter");
|
const {formatAttrForSearch} = require("../../services/attribute_formatter");
|
||||||
const jsdom = require("jsdom");
|
const jsdom = require("jsdom");
|
||||||
@ -130,7 +129,6 @@ function createNote(req) {
|
|||||||
const newContent = `${existingContent}${existingContent.trim() ? "<br/>" : ""}${rewrittenContent}`;
|
const newContent = `${existingContent}${existingContent.trim() ? "<br/>" : ""}${rewrittenContent}`;
|
||||||
note.setContent(newContent);
|
note.setContent(newContent);
|
||||||
|
|
||||||
const noteService = require("../../services/notes");
|
|
||||||
noteService.asyncPostProcessContent(note, newContent); // to mark attachments as used
|
noteService.asyncPostProcessContent(note, newContent); // to mark attachments as used
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user