![]() Preserved Topic: Insert String at Cursor (Page 1 of 1) |
|
---|---|
Paranoid (IV) Mad Scientist From: Inside THE BOX |
![]() |
Lunatic (VI) Mad Scientist From: Massachusetts, USA |
![]() In IE, this should work: |
Paranoid (IV) Mad Scientist From: Inside THE BOX |
![]() 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 |
![]() 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 |
![]() umm, maybe try this to get the cursor position: |
Paranoid (IV) Mad Scientist From: Inside THE BOX |
![]() 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 |
![]() 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) {
|