txt=document.getElementById("myTextarea");
var startPos = txt.selectionStart;
var endPos = txt.selectionEnd;
var listtext= txt.value.substr(startPos, endPos -startPos);
Maybe with something like the following. I really wish I could figure this out:
var tiddler = this.getAttribute("tiddler",this.getVariable("currentTiddler"));
Or maybe some kind of getTargetElement by title? Help.