Hi Stephen

> One of my javascript routines that I've been trying to convert from a
regular html file to a tiddlywiki contains a group of lines that look like
this:

I think you'll need to subclass the edit-text widget to do this. Can you
explain what you're trying to achieve?

Best wishes

Jeremy.


On Sun, Jan 4, 2015 at 9:43 AM, whatever <kbrezov...@gmail.com> wrote:

> Hi!
>
> Stephan's right. Once you click away, the textarea isn't the active
> element anymore. If the actual textarea is under your control, add the
> onchange handler to it or something. I have a bit of an issue imagining
> what it is you're trying to achieve and how.
>
> w
>
>
> On Saturday, January 3, 2015 8:20:20 PM UTC+1, Stephen Kimmel wrote:
>>
>> One of my javascript routines that I've been trying to convert from a
>> regular html file to a tiddlywiki contains a group of lines that look like
>> this:
>>
>> var txt = document.getElementById("myTextarea");
>>> var start = txt.selectionStart;
>>> var finish = txt.selectionEnd;
>>> var selected = txt.value.substring(start, finish);
>>>
>>>
>> which returns the portion of the text inside the textarea "myTextarea" as
>> selected. The routine seems to work fine outside a TiddlyWiki environment
>> but getting it to work inside TiddlyWiki has defeated me so far. It seems
>> that the first statement is probably the culprit.
>>
>> Is this sort of operation even possible in TiddlyWiki?
>>
>  --
> 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 tiddlywiki+unsubscr...@googlegroups.com.
> To post to this group, send email to tiddlywiki@googlegroups.com.
> Visit this group at http://groups.google.com/group/tiddlywiki.
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Jeremy Ruston
mailto:jeremy.rus...@gmail.com

-- 
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 tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/d/optout.

Reply via email to