mirror of
https://github.com/zadam/trilium.git
synced 2025-06-06 18:08:33 +02:00
filtering out initial <p> </p> which is ugly when switching to code
This commit is contained in:
parent
4ed2dc9f53
commit
f3ccf85285
@ -209,6 +209,10 @@ async function saveNoteImages(noteId, noteText, sourceId) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async function updateNote(noteId, newNote, dataKey, sourceId) {
|
async function updateNote(noteId, newNote, dataKey, sourceId) {
|
||||||
|
if (newNote.detail.note_text === '<p> </p>') {
|
||||||
|
newNote.detail.note_text = '';
|
||||||
|
}
|
||||||
|
|
||||||
if (newNote.detail.is_protected) {
|
if (newNote.detail.is_protected) {
|
||||||
await encryptNote(newNote, dataKey);
|
await encryptNote(newNote, dataKey);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user