I appreciate the effort here.  This solution is complicated, so I will need 
to sort through it and try to figure out how it fits into  my use-case.  
Thank you.

Merv

On Thursday, June 16, 2022 at 8:41:42 PM UTC-6 [email protected] wrote:

> I have hacked together the following in one of my wikis. I just wanted the 
> toolbar hotkey functionality, so I included the style/class tagging to make 
> the actual toolbar invisible. If you want to keep it visible, don't use the 
> <style> and you can also remove the outer <div>. It seems the <$edit> here 
> might be replaced by your setup.
>
> <style>
> .my-editor .tc-text-editor-toolbar-item-wrapper {
> display:none;
> }
> </style>
>
> <div class="my-editor"><$edit  tiddler="Nicer Editor - Target" 
>  field="text"  class="tc-edit-texteditor tc-edit-texteditor-body" 
>  placeholder={{$:/language/EditTemplate/Body/Placeholder}} 
>  tabindex={{$:/config/EditTabIndex}} focus={{{ 
> [{$:/config/AutoFocus}match[text]then[true]] ~[[false]] }}} 
>  cancelPopups="yes"><$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></div>
>
> I'm not totally sure each option is required, though the <$set> for 
> targetTiddler appears to ensure the toolbar adopts properties of the 
> tiddler where this editor appears. This is important for me (perhaps less 
> so for you) since I do a lot of work with type = text/x-markdown and the 
> toolbar/hotkeys are different with this type than for default tiddlytext.
>
> I have not used this extensively yet, so buyer beware!
> On Thursday, June 16, 2022 at 5:28:18 PM UTC-5 [email protected] 
> wrote:
>
>> I call the edit-text macro using the following code:
>>
>> <$set name="tiddler" value={{$:/state/edit/hold!!hold}}>
>>
>> <$edit-text tiddler=<<tiddler>> class="full-width"/>
>>
>> </$set>
>>
>> <style>
>> .full-width {width: 100%;}
>> </style>
>>
>> Which allows me to edit the content of the indicated field.  I hope this 
>> answers your question.
>>
>> Merv
>> On Thursday, June 16, 2022 at 1:55:33 PM UTC-6 PMario wrote:
>>
>>> On Thursday, June 16, 2022 at 9:47:30 PM UTC+2 [email protected] 
>>> wrote:
>>>
>>>> Is there a way to call the edit tool bar and apply it to a form created 
>>>> using the EditTextWidget?
>>>
>>>
>>> There is no such possibility at the moment, if your forms are in view 
>>> mode. .. Could you be more specific, how your forms look like?
>>>
>>> -m
>>>
>>>

-- 
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/7b3904e2-f3d7-4d30-b57f-317df1e7a687n%40googlegroups.com.

Reply via email to