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