I do think the ability to add definitions for custom fields is a good 
candidate for something that should be possible via wikitext.
I would encourage you to open an issue Tony.

For the time being you could:
- not use the edit toolbar, which will default the editor to not using the 
framed editor
- OR if you just need to set up a field or two, we can help you with the 
JavaScript to do so.

Cheers,
Saq

On Thursday, June 11, 2020 at 3:16:30 PM UTC+2, TW Tones wrote:
>
> Saq,
>
> I do think I complicated my initial post. The issue was "having and 
> editing multiline text in custom fields", and sill is but as you say I went 
> onto "using the framed editor with fields other than text". 
>
> You have answered my question in so far as saying it was not just Wiki 
> text macros or widgets that stops the framed editor behaving as I wish.
>
> Perhaps I need to reconsider my approach here.
>
> Thanks
> Tony
>
> On Thursday, June 11, 2020 at 10:53:33 PM UTC+10, Saq Imtiaz wrote:
>>
>> @Tony your initial post made it seem like the issue was having and 
>> editing multiline text in custom fields. It seems however that your issue 
>> is using the framed editor with fields other than text for multiline 
>> content.
>>
>> AFAIK the framed editor will default to using an input element, 
>> regardless of the tag specified, for fields other than text unless the 
>> field has a definition in fieldModules with an edit tag specified.
>>
>> Off the top of my head and completely untested, this is would look 
>> something like:
>>
>> $tw.modules.define("$:/boot/tiddlerfields/mycustomfield","tiddlerfield",{
>>     name: "mycustomfield",
>>     editTag: "textarea"
>> });
>>
>> On Thursday, June 11, 2020 at 2:24:03 PM UTC+2, TW Tones wrote:
>>>
>>> Folks
>>>
>>> Thanks for your advice but I am aware of your tips. The problem is 
>>> getting the edit body template to operate on an additional text field, it 
>>> is but it refuses to permit multiple lines.
>>>
>>> This method would permit use of the tool bar as in saqs streams and 
>>> other implementations that operate on text fields. In the modified versions 
>>> I attached I can't identify where I can change the behavior.
>>>
>>> Thanks for any other ideas.
>>>
>>> Tony
>>>
>>>

-- 
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/546f6392-01b0-41af-9949-ad05a3dcc774o%40googlegroups.com.

Reply via email to