Skip to content

Commit d1d20d7

Browse files
committed
Make edit/save work front to back
1 parent ebf6207 commit d1d20d7

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
caption: Supp Notes Content
22
created: 20251107151758434
3-
modified: 20251115162005320
3+
modified: 20251115173911160
44
tags: $:/tags/SupplementaryInfo
55
title: $:/supp-info/notes/content
66
type: application/json

tiddlers/$__supp-info_notes_styles_main.css

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,9 @@
1818
&button {
1919
flex: 0 1 auto;
2020
width: 2em;
21-
svg {width: 1.5em; height: 1em; vertical-align: middle;} }
21+
svg {width: 1.5em; height: 1em; vertical-align: middle;}
22+
}
23+
textarea {width: 100%;}
2224
div.note {flex: 1 0 auto;}
2325
}
2426
.note {border: 1px solid #ccc; padding: .25em .5em; margin-top: .5em; &>:first-child {margin-top: 0;}}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
caption: Supp Notes Stylesheet
22
created: 20251115161726500
3-
modified: 20251115161906202
3+
modified: 20251115172622254
44
tags: $:/tags/Stylesheet
55
title: $:/supp-info/notes/styles/main
66
type: text/css

tiddlers/$__supp-info_notes_view-template.tid

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
caption: Supp Notes Template
22
created: 20251107152410791
3-
modified: 20251115162236544
3+
modified: 20251115172707650
44
query: [prefix[$:/supp-info]]
55
tags: $:/tags/ViewTemplate
66
title: $:/supp-info/notes/view-template
@@ -65,9 +65,7 @@ type: text/vnd.tiddlywiki
6565
<% endif %>
6666
<div class="note">
6767
<% if [<mode>match[edit]] %>
68-
<$wikify name="note" text={{{ [{$:/supp-info/notes/content}jsonget<currentTiddler>,<index>] }}} output="html">
69-
<<note>>
70-
</$wikify>
68+
<$edit-text tiddler=`$:/temp/supp-info/notes/$(currentTiddler)$/$(index)$` tag="textarea" field="text" />
7169
<% else %>
7270
<$wikify name="note" text={{{ [{$:/supp-info/notes/content}jsonget<currentTiddler>,<index>] }}} output="html">
7371
<<note>>

0 commit comments

Comments
 (0)