1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-27 03:57:21 +00:00
TiddlyWiki5/editions/dev/tiddlers/from tw5.com/How to customise the password prompt.tid
Daniel Rodríguez Rivero 0409151801 Update How to customise the password prompt.tid (#2580)
A minor typo corrected. Minor but a link broker!
2016-09-22 13:14:58 +02:00

16 lines
742 B
Plaintext

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.
To do so, create a tiddler tagged {{$:/core/wiki/rawmarkup||$:/core/ui/TagTemplate}} containing:
# 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.
See $:/PatchEncryptionPrompt for an example.