v1.16-beta-13
Pre-release
Pre-release
github-actions
released this
07 Jan 16:25
·
230 commits
to master
since this release
New Features 🎉
Via the API for Note Toolbar, you can now open a prompt modal, or get content from the clipboard:
(BETA) Note Toolbar API: Open a prompt modal
NoteToolbarApi.prompt()
: Shows a prompt modal and returns the user's input.
- The parameters are the same as Templater's function that does the same thing, accepting:
prompt_text
: Text placed above the input field.default_value
: A default value for the input field.throw_on_cancel
: Throws an error if the prompt is canceled, instead of returning a null value.multiline
: If set to true, the input field will be a multiline textarea. Defaults to false.
- Returns the user's input.
(BETA) Note Toolbar API: Return clipboard contents
NoteToolbarApi.clipboard()
: Returns the clipboard's contents.
Improvements 🚀
- In toolbar settings, made the Custom classes field larger. Thanks @laktiv
- Reordered the toolbar's right-click menu, to put position/properties toggles at the top, and settings at the bottom.
Fixes
- The menu CSS class is now added to sub-menus, so CSS snippets can be applied to them as well.
- Custom styles/classes are now added to menus and sub-menus. Thanks @laktiv
Full Changelog: 1.16-beta-12...1.16-beta-13