I do have a github account but I am not familiar with how things work. You are
right. I need to migrate everything to github. Thank you for taking an
interest. Thank you again.
Happy Connecting. Sent from my Sprint Samsung Galaxy S® 5
-------- Original message --------
From: BJ <[email protected]>
Date: 02/10/2016 8:48 AM (GMT-07:00)
To: TiddlyWikiDev <[email protected]>
Subject: Re: [twdev] Re: [TW5] How get target tiddler by title in widget
Hi Andrew,
sometimes we try to hard with programming and need to have a break, often I try
to solve a problem without success for hours, then the next morning the answer
comes to me immediately.
I will make some changes to you work and put it up on tiddyspot. - it looks it
me like it is almost finished.
If you have a github account (or feel like having one) you could put your work
into github which would allow myself and other to contribute easily to your
work.
Cheers
BJ
On Wednesday, February 10, 2016 at 1:51:46 PM UTC, Andrew wrote:
Thank you BJ. Well, I really don't know what I'm doing. Now it creates a bunch
of fields with the letters of the title when I try to use bold or anything. I
wish someone could just take this over.
Happy Connecting. Sent from my Sprint Samsung Galaxy S® 5
-------- Original message --------
From: BJ <[email protected]>
Date: 02/10/2016 3:38 AM (GMT-07:00)
To: TiddlyWikiDev <[email protected]>
Subject: Re: [twdev] Re: [TW5] How get target tiddler by title in widget
you can do it like this:
EditListWidget.prototype.myFunction= function (pre,post) {
var dummy=ResetFind();
/* This function is for entries that are preceeded and followed by the entry */
var txtarea = this.parentDomNode.getElementsByTagName("textarea")[0];
var str=txtarea.value;
and change references from myFunction() to this.myFunction()
all the best
BJ
On Tuesday, February 9, 2016 at 1:00:34 PM UTC, Andrew wrote:
Thank you Jed, Tobias, and BJ,I guess it is over my head. All of your
suggestions may actually work but I cant figure out how to use them. In it's
half unfinished state I was working on http://www.format.tiddlyspot.com if
anyone would like to have a look. It has problems of overriding core tiddlers
which I want to change but cant figure out how. I wish anyone could work on it
directly.
Happy Connecting. Sent from my Sprint Samsung Galaxy S® 5
-------- Original message --------
From: BJ <[email protected]>
Date: 02/08/2016 12:16 AM (GMT-07:00)
To: TiddlyWikiDev <[email protected]>
Subject: [twdev] Re: [TW5] How get target tiddler by title in widget
you could do it like this:
var element = window.focusedElement;
if(element) {// only allow input[type=text]/textarea
if (element.tagName === "TEXTAREA" ||(element.tagName === "INPUT"
&& element.type === "text")) {
return
element.value.substring(element.selectionStart,element.selectionEnd);
}
}
On Saturday, February 6, 2016 at 1:01:46 AM UTC, Andrew wrote:Currently I'm
reworking a format widget that modifies text in edit mode. The widgets I'm
modifying use the following to get selected text but it means the ID had to be
added to a core tiddler. I'd like to select the element by title instead of a
Id if possible so that core tiddlers don't have to be
overridden?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.
--
You received this message because you are subscribed to the Google Groups
"TiddlyWikiDev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/tiddlywikidev.
To view this discussion on the web visit
https://groups.google.com/d/msgid/tiddlywikidev/7f44c313-8fd4-4049-8957-e9477af3da95%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups
"TiddlyWikiDev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/tiddlywikidev.
To view this discussion on the web visit
https://groups.google.com/d/msgid/tiddlywikidev/9073a265-8e05-4d00-ab9f-a6d95e030ff6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups
"TiddlyWikiDev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/tiddlywikidev.
To view this discussion on the web visit
https://groups.google.com/d/msgid/tiddlywikidev/488b96b4-3c28-4694-8d71-961b69482ead%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups
"TiddlyWikiDev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/tiddlywikidev.
To view this discussion on the web visit
https://groups.google.com/d/msgid/tiddlywikidev/q6msmmk27i2036x87s54i9sa.1455124967136%40email.android.com.
For more options, visit https://groups.google.com/d/optout.