Re: [twdev] Re: How can a widget know whether it is inside a draft tiddler's preview?

2015-06-20 Thread Jeremy Ruston
Hi Felix I think we might as well add an explicit variable that marks the preview region. I'll push a commit shortly, Best wishes Jeremy On Sat, Jun 20, 2015 at 9:23 AM, Felix Küppers felixkuepp...@hotmail.de wrote: Servus Mario, Walking up the dom-node tree and checking for a class is a

Re: [twdev] Re: How can a widget know whether it is inside a draft tiddler's preview?

2015-06-20 Thread Felix Küppers
Servus Mario, Walking up the dom-node tree and checking for a class is a nice idea. I initially wanted to extract the information from the widget tree but your idea is way easier. If there is no better solution, I'll go with your suggestion! Thanks! -Felix On 20.06.2015 00:56, PMario wrote: