function getCaretCoordinates(element, position, options)
...
var coordinates = {
top: span.offsetTop + parseInt(computed['borderTopWidth']),
left: span.offsetLeft + parseInt(computed['borderLeftWidth'])
};
...
return coordinates;
window.getCaretCoordinates = getCaretCoordinates;
Sorry mat, I made this and then completely forgot to share it.I put it up on gitlab with a demo wiki, it should be available here https://ooktech-tw.gitlab.io/plugins/mousey
I may have to add a mouse move handler to the $mouse widget itself
, that would limit the places where the mouse position is tracked but it would allow any pop-ups to move with the tiddlers. As it is they stay in the same position relative to the document even when the tiddler river moves.
I suspect what Mat needs is actually the co-ordinates of the caret in a textarea, and not the mouse cursor position.
Should be possible to wrap this in a widget or action to get the job done:

(So no misunderstanding: My work starts again thursday and tomorrow I need to get a new computer and do all works things I've procrastinated over the holidays here, so I'll only be able to fiddle in small parts at a time for a while but it'll eventually be a key part in EdiorMagic so... well, again, thanks Jed!)


pointer-events: none;
position: absolute;
height:0;
.tc-caret {
pointer-events:none;
position:absolute;
}
@Jed, for some reason your plugin doesn't work for, specifically, the tiddler text field editor. It does work for the other fields, e.g in the title field. I set up http://testing-cpos.tiddlyspot.com/ to show the problem. The wiki is basically an otherwise empty wiki. The password is password if you want to test something. Do I misunderstand something?
[...] Have you a list of all text fields or areatext where popup information under the caret would be needed ?
I am getting the same problem you are in the normal text field, but only when the editor toolbar is enabled. I vaguely remember something about the text editor using something special when the editor toolbar is used so you don't lose the cursor position.What the something special is I don't know, but finding that may point us to a solution.
In the meantime try using this instead of currentTiddler:{{{[<storyTiddler>get[draft.of]]}}}
I'm at this again hoping to get it to work.
@Alain, thank you for taking a look at this! If it's not clear, it's Jed that has kindly made the caret position code. Did you happen to progress anything in what you state last, i.e to put the current caret position in a tiddler based on your previous work?
If people have forgotten by now: The idea is to first create a title picker but the bigger idea - which should be extremely useful - is a generic popup that can show anything, including title picks, macrocall picks, filter operator picks, image picks or really any information. This immediate accessible toolbox should much speed up and simplify authoring.<:-)
--
You received this message because you are subscribed to a topic in the Google Groups "TiddlyWikiDev" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/tiddlywikidev/scGK9fBKsZ8/unsubscribe.
To unsubscribe from this group and all its topics, send an email to tiddlywikide...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywikidev/0eb30113-5ac9-4f1a-bf52-3489ea09f405o%40googlegroups.com.
--
You received this message because you are subscribed to a topic in the Google Groups "TiddlyWikiDev" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/tiddlywikidev/scGK9fBKsZ8/unsubscribe.
To unsubscribe from this group and all its topics, send an email to tiddlywikide...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywikidev/634837de-3ea3-48c0-812c-1861e8c66a29o%40googlegroups.com.