Called upon when attempting to retrieve the content element of a NoteContext. Generally should not be invoked manually, as it is used by NoteContext.getContentElement.
OptionalinsertNewlineAtTop?: booleanWhen set, instead of merely focusing the editor, an empty paragraph is inserted at the very top of the document and the cursor is placed there (Notion-like behavior when pressing Enter in the title). Only honored by text notes. If the first block is already an empty paragraph, the cursor is placed in it rather than stacking another empty paragraph.
Works only in the electron context menu.
Sets the active Screen (e.g. to toggle the tree sidebar). It triggers the EventMappings.activeScreenChanged event, but only if the provided screen is different than the current one.
The keys represent the different commands that can be triggered via AppContext#triggerCommand (first argument), and the values represent the data or arguments definition of the given command. All data for commands must extend CommandData.