I had created this variable:
Set AdminOnly = %IF{"'%USERNAME%' ingroup 'TWikiAdminGroup'" then="style='display: block;'" else="style='display: none;'"}%
Which I used as
<div %AdminOnly%>
...
</div>
If the topic is ever edited (and saved) with the WYSIWYG editor, the div is broken and rewritten as
%AdminOnly% class='TMLhtml' >
I have now built the
<div...
into the variable, but the editor shouldn't eat my code.
--
TWiki:Main/VickiBrown
- 2017-04-12
Discussed at
TWiki:Codev/KampalaReleaseMeeting2017x05x04
:
- Fixing that possibly opens a can of worms
- Workaround: Embed in
<sticky>
tags
--
TWiki:Main.PeterThoeny
- 2017-04-21