mirror of
https://github.com/zadam/trilium.git
synced 2025-01-18 04:59:56 +08:00
filtering out initial <p> </p> which is ugly when switching to code
This commit is contained in:
parent
4ed2dc9f53
commit
f3ccf85285
1 changed files with 4 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue