Paste text at an index number

  •  12-19-2008, 6:25 AM

    Paste text at an index number

    I'm trying to make some other functions for the cute editor.
    One is to add a footnote.
    I'm making it like this:
    -press a button in the cute editor menu
    -show a new dialog which will asks for a text
    -press a button on this dialog and the text you typed will be placed at the bottom of the cute editor textfield and a number (for instance: 2) will be placed where you were with your pointer.
     
    Almost everything works, except for pasting a text at the bottom of the textfield.
    I've been trying to count the amount of characters in the screen and then paste a new text at that index number. But I couldn't count the characters on the textfield AND I couldn't paste a text at an index number.
     
    Can someone please tell me how to do this?
     
    Thank you very much.
View Complete Thread