mirror of
https://github.com/zadam/trilium.git
synced 2025-10-29 09:16:45 +01:00
render notes should now return elements to append instead of modifying DOM directly
This commit is contained in:
@@ -16,7 +16,7 @@ import dateNotesService from'./date_notes.js';
|
||||
* @constructor
|
||||
* @hideconstructor
|
||||
*/
|
||||
function FrontendScriptApi(startNote, currentNote, originEntity = null) {
|
||||
function FrontendScriptApi(startNote, currentNote, originEntity = null, tabContext = null) {
|
||||
const $pluginButtons = $("#plugin-buttons");
|
||||
|
||||
/** @property {object} note where script started executing */
|
||||
@@ -29,6 +29,9 @@ function FrontendScriptApi(startNote, currentNote, originEntity = null) {
|
||||
// to keep consistency with backend API
|
||||
this.dayjs = dayjs;
|
||||
|
||||
/** @property {TabContext|null} - experimental! */
|
||||
this.tabContext = tabContext;
|
||||
|
||||
/**
|
||||
* Activates note in the tree and in the note detail.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user