1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2025-02-05 05:30:02 +00:00

17 lines
839 B
Plaintext
Raw Normal View History

2013-08-20 15:18:15 +01:00
title: DraftMechanism
modified: 201308201324
2014-09-11 20:12:25 +01:00
tags: Mechanisms
2013-08-20 15:18:15 +01:00
Tiddlers that have a `draft.of` field are treated as pending drafts of the tiddler specified in the field. Draft tiddlers should also have a `draft.title` field that specifies the title that will be given to the tiddler when it is saved.
Several features work in concert to give the desired behaviour for draft tiddlers:
* The ListWidget can optionally render draft tiddlers through a different template
* The NavigatorWidget incorporates handlers for the following events:
2014-08-28 21:43:44 +01:00
** `tm-new-tiddler` for creating a new tiddler in draft mode
** `tm-edit-tiddler` for moving a tiddler into edit mode
** `tm-cancel-tiddler` for cancelling a tiddler out of edit mode
** `tm-save-tiddler` for saving a draft tiddler
2013-08-20 15:18:15 +01:00
* Draft tiddlers are automatically excluded from search operations