Preserved Topic: Insert String at Cursor |
|
---|---|
Author | Thread |
Paranoid (IV) Mad Scientist From: Inside THE BOX |
posted 04-13-2002 08:30 |
Lunatic (VI) Mad Scientist From: Massachusetts, USA |
posted 04-13-2002 09:13
In IE, this should work: |
Paranoid (IV) Mad Scientist From: Inside THE BOX |
posted 04-14-2002 17:51
That's kind of what I've got now, but you have to have something selected for it to work. Otherwise, it just prints the string at the top of the browser window. |
Paranoid (IV) Inmate From: Sthlm, Sweden |
posted 04-14-2002 23:43
It should be possible, I want it myself, but this is a s close as I'm getting it: code: function insertSomething(thisField,theText){
|
Paranoid (IV) Inmate From: Seattle, WA, USA |
posted 04-15-2002 05:10
umm, maybe try this to get the cursor position: |
Paranoid (IV) Mad Scientist From: Inside THE BOX |
posted 04-17-2002 07:42
That would probably work, DmS, but I think I like having the option to insert the text anywhere in my entry in case I want to go back and edit what I've written. I guess I'll have to stick with using a selection range. I'll just have to type a character, double click it, then click my button to replace it with the entire string. |
Paranoid (IV) Mad Scientist From: Inside THE BOX |
posted 05-13-2002 05:08
Woohoo! After nearly a month, I seem to have found the answer. I slightly modified a snippet I found on YaBB: code: function insertText(text) {
|