Mat,
I have followed the similar lines to what you discuss and your linked
examples.
I am interested in hiding some text area fields from the default edit
fields and presenting different editor for them, similar to you example.
Effectively its only the edit process that stops you using text area, but
failing to allow you save line breaks. I did something with Mohammad some
time ago, and have an example in a production wiki I can look up.
However I am currently expanding my aforementioned autonomous fields into a
new fields editor and display system.
For multi-lines I build a new editor for each special field
<$transclude field=<<fieldname>> mode=block/>
view
''//Add a blank line for a new
paragraph//''{{||$:/core/ui/EditTemplate/person-bio-text/editor}}
to edit
So $:/core/ui/EditTemplate/person-bio-text/editor looks like this; stolen
from core tiddlers.
<$edit-text
field="person-bio-text"
tag=textarea
class="tc-edit-texteditor"
placeholder={{$:/language/EditTemplate/Body/Placeholder}}
tabindex={{$:/config/EditTabIndex}}
><$set
name="targetTiddler"
value=<<currentTiddler>>
><$list
filter="[all[shadows+tiddlers]tag[$:/tags/EditorToolbar]!has[draft.of]]"
><$reveal
type="nomatch"
state=<<config-visibility-title>>
text="hide"
class="tc-text-editor-toolbar-item-wrapper"
><$transclude
tiddler="$:/core/ui/EditTemplate/body/toolbar/button"
mode="inline"
/></$reveal></$list></$set></$edit-text>
Then all is left is to stop the field being edited in the fields edit part
of edit mode.
I hope to share something more soon.
Regards
Tony
On Saturday, June 27, 2020 at 7:40:45 PM UTC+10, Mat wrote:
>
> TW Tones wrote:
>>
>> *Feedback*
>>
>> - Let me know here if this is helpful, if their is a call for it, I
>> can make a multi-line text field work with this.
>>
>> In deed, the single line is sometimes an annoyance working with fields.
>
> If you allow me to go "off-question": Overall, the EditTemplate for the
> custom fields should feature a little control menu for the field where the
> user could set if the field should be single or multi-line, if the field
> should be visible in edit view or not (e.g "created" is not), if the field
> should be visible in view mode or not and its position.
> All settings are local, i.e concerns only this field only in only the
> current tiddler. For dog food ;-) these settings could be stored in a
> single field e.g for the field "foo", there's a field "settings-foo", which
> is probably hidden, and has e.g "settings-foo: multiline showinedit
> hideinview listafterxxx"
>
>
>>
>> - Share any examples you develop by sharing the content of the
>> local-viewtemplate you used similar to my examples above, describe what
>> it
>> does (I have not intentionally to get you to experiment)
>>
>>
> I made these things long ago that might possibly be of interest
>
> http://varsfields.tiddlyspot.com/
> http://configsfields.tiddlyspot.com/
>
> <:-)
>
--
You received this message because you are subscribed to the Google Groups
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/tiddlywiki/95108b47-8b08-416b-99d7-62a7fcb2e8d1o%40googlegroups.com.