I’m building a TiddlyWiki to present visual narratives, there is a demo here TiddlyImage.
I’d like to make the image descriptions read-only by default but editable by clicking a button within the narrative.
I have this code so far which gives a permanently open input field:
<!-- https://tiddlywiki.com/#EditTextWidget -->
<style>
.textbox {
background-color: gray;
color: black;
border: 2px solid black;
padding: 20px;
width: 100%;
font-size:125%;
}
</style>
<p>
<$edit-text tiddler=<<currentTiddler>> field="description" tag=input class=textbox/>
</p>
Is there some approach I could take to have text display as read-only by default but toggle the edit capability on demand?
Many thanks,
TechTangle