I’m using the <$eventcatcher>
method described elsewhere by @saqimtiaz and others for performance reasons on lines of text. It’s for a homebrew outliner, so I want any clicking of the text to perform an action (switch the line into edit mode in my real wiki). All is working well except for links. Internal links work fine - they perform normally, but external links don’t process. How could I change the code to allow external links to work like internal ones?
Sample code to copy/paste into TiddlyWiki.com (simplified example)
\define actions() <$action-setfield $tiddler="$:/temp/test" $value=<<dom-line-id>>/>
<$eventcatcher selector=".line" $click=<<actions>>>
<ul>
<$list filter="[tag[TableOfContents]] [[https://google.com]]">
<li class="line" line-id=<<currentTiddler>>>The title is {{!!title}}</li>
</$list>
</ul>
</$eventcatcher>
Test = {{$:/temp/test}}
Which looks like this:
And here’s an animated GIF showing the clicking working / not working