2014-10-06 09:02:34 +00:00
|
|
|
title: How to customise the password prompt
|
|
|
|
tags: howto
|
|
|
|
created: 20141006085526118
|
|
|
|
modified: 20141006085526118
|
|
|
|
|
|
|
|
You can customise the text and appearance of the password prompt that is displayed when encrypted TiddlyWiki files are first opened.
|
|
|
|
|
2016-08-20 14:46:50 +00:00
|
|
|
To do so, create a tiddler tagged {{$:/core/wiki/rawmarkup||$:/core/ui/TagTemplate}} containing:
|
2014-10-06 09:02:34 +00:00
|
|
|
|
|
|
|
# A JavaScript `<script>` tag containing code to override the configuration variable `$tw.boot.encryptionPrompts.decrypt`
|
|
|
|
# CSS `<style>` definitions targeting the `tc-password-wrapper` class to apply styles to the form
|
|
|
|
|
|
|
|
Raw markup tiddlers are spliced into the top of the standalone HTML file, and are executed before the boot prefix and boot kernel.
|
|
|
|
|
2016-09-22 11:14:58 +00:00
|
|
|
See $:/PatchEncryptionPrompt for an example.
|