mirror of
https://github.com/zadam/trilium.git
synced 2025-11-01 10:55:55 +01:00
add link disables HTML link when in code note (plus some related refactorings)
This commit is contained in:
@@ -190,6 +190,12 @@ const noteEditor = (function() {
|
||||
}
|
||||
}
|
||||
|
||||
function getCurrentNoteType() {
|
||||
const currentNote = getCurrentNote();
|
||||
|
||||
return currentNote ? currentNote.detail.type : null;
|
||||
}
|
||||
|
||||
$(document).ready(() => {
|
||||
noteTitleEl.on('input', () => {
|
||||
noteChanged();
|
||||
@@ -239,6 +245,7 @@ const noteEditor = (function() {
|
||||
setNoteBackgroundIfProtected,
|
||||
loadNote,
|
||||
getCurrentNote,
|
||||
getCurrentNoteType,
|
||||
getCurrentNoteId,
|
||||
newNoteCreated,
|
||||
getEditor,
|
||||
|
||||
Reference in New Issue
Block a user