From a7c13ceacc3475db7784c6a4c5e5d3fb3b9c8ed0 Mon Sep 17 00:00:00 2001 From: Casey Doran Date: Fri, 16 Oct 2020 10:40:30 -0700 Subject: [PATCH 1/2] if the sender request contains a label and/or a labelValue, apply it (#1310) --- src/routes/api/sender.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/routes/api/sender.js b/src/routes/api/sender.js index dac2116d8..031c3fcf1 100644 --- a/src/routes/api/sender.js +++ b/src/routes/api/sender.js @@ -35,6 +35,14 @@ function saveNote(req) { mime: 'text/html' }); + if (req.body.label && req.body.label.trim()){ + let value; + if (req.body.labelValue && req.body.labelValue.trim()){ + value = req.body.labelValue; + } + note.setLabel(req.body.label, value); + } + return { noteId: note.noteId, branchId: branch.branchId From dfa7d3f18612b5aefc6b5e9ad80bc68cafb6c4d2 Mon Sep 17 00:00:00 2001 From: zadam Date: Wed, 21 Oct 2020 22:40:34 +0200 Subject: [PATCH 2/2] Update README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 8aad5e0a5..9451d9af6 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,7 @@ Trilium Notes is a hierarchical note taking application with focus on building l ## Features * Notes can be arranged into arbitrarily deep tree. Single note can be placed into multiple places in the tree (see [cloning](https://github.com/zadam/trilium/wiki/Cloning-notes)) -* Rich WYSIWYG note editing including e.g. tables and images with markdown [autoformat](https://github.com/zadam/trilium/wiki/Text-notes#autoformat) +* Rich WYSIWYG note editing including e.g. tables, images and [math](https://github.com/zadam/trilium/wiki/Text-notes#math-support) with markdown [autoformat](https://github.com/zadam/trilium/wiki/Text-notes#autoformat) * Support for editing [notes with source code](https://github.com/zadam/trilium/wiki/Code-notes), including syntax highlighting * Fast and easy [navigation between notes](https://github.com/zadam/trilium/wiki/Note-navigation), full text search and [note hoisting](https://github.com/zadam/trilium/wiki/Note-hoisting) * Seamless [note versioning](https://github.com/zadam/trilium/wiki/Note-revisions) @@ -54,4 +54,4 @@ npm run start-server * [CKEditor 5](https://github.com/ckeditor/ckeditor5) - best WYSIWYG editor on the market, very interactive and listening team * [FancyTree](https://github.com/mar10/fancytree) - very feature rich tree library without real competition. Trilium Notes would not be the same without it. * [CodeMirror](https://github.com/codemirror/CodeMirror) - code editor with support for huge amount of languages -* [jsPlumb](https://github.com/jsplumb/jsplumb) - visual connectivity library without competition. Used in [relation maps](https://github.com/zadam/trilium/wiki/Relation-map) and [link maps](https://github.com/zadam/trilium/wiki/Link-map) \ No newline at end of file +* [jsPlumb](https://github.com/jsplumb/jsplumb) - visual connectivity library without competition. Used in [relation maps](https://github.com/zadam/trilium/wiki/Relation-map) and [link maps](https://github.com/zadam/trilium/wiki/Link-map)