Chris,
Thank for sharing. Actually what I proposed in TW-Utility is just hiding
elements for readers not familiar with TW and they need wiki to read it
like a software tutorial.
I think from security point of view it has no effects.
--Mohammad
On Monday, March 16, 2020 at 11:34:30 PM UTC+3:30, Chris Fischer wrote:
>
> Maybe I've missed something obvious. How do I prevent others from switch
> to Author mode? I've implemented a crude version of this on my own with a
> password entry tiddler setting a data tiddler:
>
> <$action-setfield $tiddler="$:/_secret" $value=""/>
>
>
> <$edit-text
> tiddler="$:/_secret"
> default=""
> tag="input"
> type="password"
> placeholder="enter secret here..."/>
>
> And then updating a bunch of core/UI items that I don't want displayed if
> the password isn't entered correctly:
>
> Example: $:/core/ui/Buttons/delete
> <$reveal type="match" state="$:/_secret" text="the_secret_password">
> <$button message="tm-delete-tiddler"
> tooltip={{$:/language/Buttons/Delete/Hint}}
> aria-label={{$:/language/Buttons/Delete/Caption}} class=<
> <tv-config-toolbar-class>>>
> <$list filter="[<tv-config-toolbar-icons>match[yes]]">
> {{$:/core/images/delete-button}}
> </$list>
> <$list filter="[<tv-config-toolbar-text>match[yes]]">
> <span class="tc-btn-text"><$text
> text={{$:/language/Buttons/Delete/Caption}}/></span>
> </$list>
> </$button>
> </$reveal>
>
> But this method has me editing lots of core tiddlers (which scares me and
> makes updates challenging).
>
> On Monday, March 16, 2020 at 11:36:40 AM UTC-4, Mohammad wrote:
>>
>> *Announcement:Utility plugin*
>> *Date: Mar 16th, 2020*
>> *Release: 2.0.0*
>> *Status: stable*
>>
>> The new update has a much better admin panel (afterward it is called
>> author panel). Try Ctrl+Alt+A shortcut.
>> Simple author/reader mode switch using Ctrl+Alt+L. Give a try :-)
>> The new Disable Drop Zone is used and in the reader mode, it does not
>> accept import by drag and drop
>>
>> Read the tutorial to get familiar with different features of TW-Utility
>>
>> Your feedback is highly welcome.
>>
>> History
>>
>> Revision 2.0.0
>>
>> - Date: [16th Mar 2020]
>> - [NEW] Admin mode changed to Author mode
>> - [NEW] Shoutcut added to simply and seemlesly switch author-reader
>> mode using ctrl+alt+L
>> - [NEW] Disable page drop zone added to author/reader mode
>>
>> For all changes see ChangeLog
>> <https://kookma.github.io/TW-Utility/#ChangeLog>
>>
>>
>>
>> Demo: https://kookma.github.io/TW-Utility/
>> Source: https://github.com/kookma/TW-Utility
>>
>> Your feedback is highly welcome.
>> If you like it star it at GitHub (https://github.com/kookma/TW-Utility)
>>
>>
>> -- Mohammad
>>
>>
>
--
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/9fe0ff8b-5f95-41d3-b6d8-046664f356b3%40googlegroups.com.