Add global option to show default text below the edit textarea (#6882)

This commit is contained in:
Mario Pietsch 2022-08-05 17:16:39 +02:00 committed by GitHub
parent 90d6a0f1a6
commit a572979cc4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 11 additions and 0 deletions

View File

@ -10,6 +10,10 @@ tags: $:/tags/Macro
<$list filter="""$(editFieldsFilter)$""" variable="editorField">
<$edit-text tag="$(editorTagName)$" field=<<editorField>> type="text" class="tc-edit-texteditor" minHeight="10px"/>
</$list>
<$reveal state="$:/state/showEnglishText" type=match text="show" tag="p">
Default text:
<pre><code><$view tiddler="$:/core" subtiddler=<<currentTiddler>> field=<<editorField>>/></code></pre>
</$reveal>
</td>
<td width="20px">
<div class="tc-drop-down-wrapper">
@ -60,6 +64,8 @@ Delete translation
//<$count filter=<<translatableTiddlerTitles>>/> translatable tiddlers in this group//
<$checkbox tiddler="$:/state/showEnglishText" field="text" checked="show" unchecked="hide" default="hide"> Show the default text below editor field</$checkbox>
<$radio tiddler="$:/plugins/tiddlywiki/translators/editorTag" value="textarea"> Multi-line editors</$radio><br>
<$radio tiddler="$:/plugins/tiddlywiki/translators/editorTag" value="input"> Single-line editors</$radio>

View File

@ -12,4 +12,9 @@ tags: $:/tags/Stylesheet
.tc-translators-string-table .tc-drop-down {
min-width: 500px;
}
.tc-tiddler-frame textarea.tc-edit-texteditor,
.tc-tiddler-frame input.tc-edit-texteditor {
background-color: #feffef;
}